A method and device for matching relief policies

Through the combination of crawler technology and knowledge graph, the rescue policy database is gradually updated, which solves the problems of complexity and low accuracy of the rescue policy matching system in the existing technology, and achieves fast and accurate policy matching and efficient social assistance process.

CN118069790BActive Publication Date: 2024-08-30SOUTHEAST UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410466111.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2024-08-30
Estimated Expiration
2044-04-18

AI Technical Summary

Technical Problem

The existing assistance policy matching system requires applicants to input a large amount of personal information at one time, resulting in complex operating procedures, poor matching accuracy, low efficiency, and insufficient scalability.

Method used

Use crawler technology to obtain public data information, extract text features and build a knowledge graph, filter based on basic identity information, gradually update the policy database to be matched, use pre-trained language models and dynamic prompt generation strategies to optimize information extraction, and build a binary tree structure to improve matching Accuracy and efficiency.

Benefits of technology

It achieves fast and accurate matching of assistance policies, reduces the burden on applicants, improves the system operating performance and the real-time accuracy of the policy database, and enhances the scalability and reusability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118069790B
    Figure CN118069790B
Patent Text Reader

Abstract

The present invention relates to the technical field of information analysis and processing, and discloses a method and device for matching relief policies, including obtaining information text of public data information that matches the applicant category, obtaining text features and knowledge graphs of each public data information, integrating them into fusion features, screening out relief policy information to form a policy database; obtaining the basic identity information of the applicant, screening relief policy information from the policy database to form a policy database to be matched; counting the number of occurrences of each application condition, with the condition with the largest number of occurrences being the current condition to be filled in; if the current condition to be filled in is not empty, then using it as the current search condition, updating the policy database to be matched, until the current condition to be filled in is empty, and obtaining the relief policy information of the updated policy database to be matched as the matching relief policy. The present invention enables applicants to gradually fill in their own information by updating the current condition to be filled in, thereby achieving rapid and accurate matching of relief policies and improving matching efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information analysis and processing, and in particular to a method and device for matching relief policies. Background Art

[0002] With the development of social assistance, how to efficiently and accurately match assistance policies according to the conditions input by applicants has become an urgent problem to be solved in this field. At present, some assistance policy matching systems have appeared in the society, which provide online application and query functions. However, there are some significant shortcomings and deficiencies in practical applications.

[0003] In the existing assistance policy matching system, applicants often need to fill in a large amount of personal application information at one time when searching for matching policies. In addition, due to the large amount of application information filled in, the system often cannot accurately identify and match the assistance policy that best suits the applicant, resulting in generally low matching accuracy and slow matching speed. Moreover, the matching algorithms in the prior art match policies according to a pre-designed process, and the user input dimensions are unified, which means that the system can only be applied to specified policy matching scenarios, and has weak scalability for other matching scenarios.

[0004] To sum up, the existing relief policy matching method requires applicants to input a large amount of personal information at one time, which leads to complicated operation procedures, poor policy matching accuracy and low matching efficiency, which is not conducive to the public to quickly and accurately find policy data that suits their personal circumstances. Summary of the invention

[0005] To this end, the technical problem to be solved by the present invention is to overcome the problem in the prior art that the policy matching process is complicated, the matching accuracy is poor, and the efficiency is low due to the need for applicants to input a large amount of personal information at one time.

[0006] In order to solve the above technical problems, the present invention provides a relief policy matching method, comprising:

[0007] S1: using crawler technology to obtain information text of public data information matching the applicant category from the public assistance policy system; the public data information includes assistance policy information and non-assistance policy information;

[0008] S2: Based on the information text of each public data information, extract the text features of each public data information and construct the knowledge graph of each public data information; integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; based on the fusion features of all public data information, screen out the relief policy information in the public data information to form a policy database;

[0009] S3: Obtain the basic identity information of the applicant as the initial search condition; select the relief policy information matching the initial search condition from the policy database to form a policy database to be matched;

[0010] S4: Obtain all application conditions of each rescue policy information in the to-be-matched policy database to form an application condition set for each rescue policy information;

[0011] S5: Based on the application condition set of all the relief policy information in the policy database to be matched, count the number of occurrences of each application condition; obtain the application condition with the largest number of occurrences as the current condition to be filled in; if the current condition to be filled in is not empty, obtain the applicant information corresponding to the current condition to be filled in as the current search condition, screen the relief policy information in the policy database to be matched that matches the current search condition, and update the policy database to be matched;

[0012] S6: Repeat steps S4 to S5 until the current conditions to be filled in are empty, and obtain the updated relief policy information in the policy database to be matched as the relief policy that meets the conditions filled in by the applicant.

[0013] In one embodiment of the present invention, if the updated policy database to be matched in step S5 is empty, there is no relief policy that meets the conditions filled in by the applicant.

[0014] In one embodiment of the present invention, the applicant categories include the elderly, the disabled, the low-income population and children in difficult circumstances.

[0015] In one embodiment of the present invention, the basic identity information of the applicant includes name and ID number; the elements in the application condition set include registered residence, annual per capita family income, employment status, disability type, disability level, and family member status.

[0016] In one embodiment of the present invention, based on the information text of each public data information, extract the text features of each public data information, and construct a knowledge graph of each public data information; integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; based on the fusion features of all public data information, screen out the relief policy information in the public data information to form a policy database, including:

[0017] Use pre-trained language models to extract text features of each public data information;

[0018] Utilize a pre-trained information extraction model based on a dynamic prompt generation strategy to extract key information of each public data information; the key information of the public data information includes policy name, applicable objects, application conditions and application process;

[0019] For each piece of public data information, the key information of the public data information is used as a node, and the logical relationship between the key information is obtained as an edge to construct a knowledge graph for each piece of public data information;

[0020] Integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information;

[0021] Based on the fusion features of all public data information, pre-trained classifiers are used to filter out rescue policy information from all public data information to form a policy database.

[0022] In one embodiment of the present invention, the pre-trained language model includes BERT, RoBERTa and XLNet.

[0023] In one embodiment of the present invention, a pre-trained information extraction model based on a dynamic prompt generation strategy is used to extract key information of each public data information, including:

[0024] Build an initial prompt template based on the key information to be extracted from each public data information;

[0025] Use the initial prompt template to obtain the initial prompt for each public data information;

[0026] Input each public data information and its initial prompt into the initial information extraction model to extract the key information of each public data information;

[0027] Construct a reward function based on the weighted sum of the accuracy, recall, and F1 score of the initial information extraction model;

[0028] Based on the reward function value, optimize the initial information extraction model and the initial prompt template until the reward function value converges, and obtain the pre-trained information extraction model and optimized prompt template;

[0029] Input each public data information and the optimized prompt template into the pre-trained information extraction model to obtain the key information of each public data information.

[0030] In one embodiment of the present invention, obtaining the new current search condition further includes:

[0031] For each rescue policy information in the policy database to be matched, the basic identity information of the applicant is used as the root node, and the application conditions in the application condition set of the rescue policy information are used as the child nodes of each layer under the root node in the order of the preset application conditions, so as to construct a binary tree structure for each rescue policy information in the policy database to be matched;

[0032] Obtain the child nodes of the root node in the binary tree structure of all the relief policy information in the policy database to be matched, count the number of child nodes representing each application condition, and obtain the application condition represented by the child node with the largest number as the current condition to be filled in by the applicant;

[0033] The application conditions represented by the root node of the applicant and the current conditions to be filled in are obtained as a new root node, and the application conditions represented by the new root node are used as new current search conditions.

[0034] In one embodiment of the present invention, after obtaining the information text of the public data information matching the applicant category, it also includes preprocessing all the public data information; the preprocessing includes data cleaning and data standardization.

[0035] The embodiment of the present invention also provides a relief policy matching device, including:

[0036] A policy database construction module is used to use crawler technology to obtain information text of public data information matching the applicant category from the public assistance policy system; the public data information includes assistance policy information and non-assistance policy information; based on the information text of each public data information, extract the text features of each public data information, and construct a knowledge graph of each public data information; integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; based on the fusion features of all public data information, screen out the assistance policy information in the public data information to form a policy database;

[0037] The module for constructing the policy database to be matched is used to obtain the basic identity information of the applicant as the initial search condition; select the relief policy information matching the initial search condition from the policy database to form the policy database to be matched;

[0038] The update module of the policy database to be matched is used to obtain all application conditions of each rescue policy information in the policy database to be matched, and form an application condition set for each rescue policy information; based on the application condition set of all rescue policy information in the policy database to be matched, count the number of occurrences of each application condition; obtain the application condition with the largest number of occurrences as the current condition to be filled in; if the current condition to be filled in is not empty, obtain the applicant information corresponding to the current condition to be filled in as the current search condition, screen the rescue policy information in the policy database to be matched that matches the current search condition, and update the policy database to be matched;

[0039] The matching policy acquisition module is used to repeatedly execute the matching policy database update module until the current conditions to be filled in are empty, and obtain the relief policy information in the updated matching policy database as the relief policy that meets the conditions filled in by the applicant.

[0040] The above technical solution of the present invention has the following beneficial effects compared with the prior art:

[0041] The relief policy matching method described in the present invention, after obtaining a policy database containing relief policy information, uses the applicant's basic information as the current search condition to filter out a policy database to be matched from the policy database; obtains an application condition set for each relief policy information in the policy database to be matched, counts the number of occurrences of each application condition, and obtains the condition with the largest number of occurrences as the current condition to be filled in; uses the current search condition and the current condition to be filled in as new current search conditions to update the current search condition, the policy database to be matched, the application condition set, and the current condition to be filled in, until the current condition to be filled in is empty, and obtains the relief policy information in the updated policy database to be matched as the relief policy that meets the conditions filled in by the applicant. The present invention disassembles and sorts out the application conditions of the relief policy information, and the applicant can gradually fill in his own conditions according to the current conditions to be filled in given by the present invention, so that the present invention updates the policy database to be matched according to the conditions filled in by the applicant, and simultaneously optimizes the subsequent current conditions to be filled in, thereby reducing the misjudgment of the applicant's conditions, achieving rapid and accurate matching of relief policies, and improving the efficiency and accuracy of social relief. At the same time, applicants do not need to provide all of their own conditions to search for matching policies. They only need to gradually add the current conditions to be filled in according to the present invention, which reduces the burden on applicants and improves the efficiency of use. The present invention uses crawler technology to crawl public data information in real time, and constructs a fusion feature of each public data information integrated by text features and knowledge graphs, which improves the real-time and accuracy of policy database construction. The real-time updated policy database to be matched ensures the accuracy of the current relief policy information to be matched, improves the system operation performance, and retrieves more timely and accurate matching policies for applicants. The present invention crawls different public data information according to different applicant categories, constructs a policy database that matches the applicant category, and realizes retrieval and matching in a variety of different scenarios.

[0042] The present invention uses the basic identity information of the applicant as the root node, constructs a binary tree structure for each rescue policy information in the policy database to be matched, and selects the application conditions represented by the child nodes with the highest frequency of occurrence from the child nodes of all the tree structure root nodes as the applicant's current conditions to be filled in; uses the applicant's basic identity information and the current conditions to be filled in as new current search conditions to update the policy database to be matched, the tree structure and the current conditions to be filled in, until the tree structure has no child nodes, and obtains the rescue policy information in the current policy database to be matched as the matching policy. By constructing a binary tree structure, the present invention intuitively and clearly displays the screening results of the application conditions input by the applicant each time, which is convenient for the applicant to understand the categories of application conditions that do not meet the requirements, speeds up the screening speed, and improves the accuracy and speed of policy matching. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0044] Figure 1 is a flowchart of the steps of the relief policy matching method provided by the present invention;

[0045] Figure 2 It is a flow chart of updating the current conditions to be filled in provided by the present invention. DETAILED DESCRIPTION

[0046] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0047] Reference Figure 1 As shown, the flowchart of the method for matching the relief policies of the present invention includes the following specific steps:

[0048] S1: using crawler technology to obtain information text of public data information matching the applicant category from the public assistance policy system; the public data information includes assistance policy information and non-assistance policy information;

[0049] S2: Based on the information text of each public data information, extract the text features of each public data information and construct the knowledge graph of each public data information; integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; based on the fusion features of all public data information, screen out the relief policy information in the public data information to form a policy database;

[0050] S3: Obtain the basic identity information of the applicant as the initial search condition; select the relief policy information matching the initial search condition from the policy database to form a policy database to be matched;

[0051] S4: Obtain all application conditions of each rescue policy information in the to-be-matched policy database to form an application condition set for each rescue policy information;

[0052] S5: Based on the application condition set of all the relief policy information in the policy database to be matched, count the number of occurrences of each application condition; obtain the application condition with the largest number of occurrences as the current condition to be filled in; if the current condition to be filled in is not empty, obtain the applicant information corresponding to the current condition to be filled in as the current search condition, screen the relief policy information in the policy database to be matched that matches the current search condition, and update the policy database to be matched;

[0053] S6: Repeat steps S4 to S5 until the current condition to be filled is empty, and obtain the updated relief policy information in the policy database to be matched as the relief policy that meets the conditions filled in by the applicant;

[0054] If the updated policy database to be matched in step S5 is empty, there is no relief policy that meets the conditions filled in by the applicant.

[0055] In this embodiment, the acquisition of the policy database in step S2 specifically includes:

[0056] S21: Use the pre-trained language model to extract text features of each public data information;

[0057] The pre-trained language models include BERT, RoBERTa and XLNet, which can capture rich semantic information and convert text information into high-dimensional semantic representation to obtain text features; the text features are representative information that integrates the semantic relationship between the text before and after;

[0058] S22: extracting key information of each public data information by using a pre-trained information extraction model based on a dynamic prompt generation strategy; the key information of the public data information includes policy name, applicable objects, application conditions and application process;

[0059] The base model of the information extraction model is the Universal Information Extraction (UIE) model. This framework realizes the unified modeling of tasks such as entity extraction, relationship extraction, time extraction, and sentiment analysis, and enables good migration and generalization capabilities between different tasks.

[0060] S23: For each piece of public data information, key information of the public data information is used as a node, and logical relationships between the key information are obtained as edges to construct a knowledge graph of each piece of public data information;

[0061] S24: Integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information;

[0062] S25: Based on the fusion features of all public data information, use the pre-trained classifier to filter out the rescue policy information from all public data information to form a policy database.

[0063] In an embodiment of the present invention, the constructed policy database contains policy text information, text features, and associated entities and relationships; the policy text includes the policy title, release time, and content summary; the text features are the matching conditions for the extracted policy text; the associated entities and relationships include personnel entities associated with the policy text, relationships between personnel, and basic information.

[0064] The acquisition of key information of each public data information in step S22 specifically includes:

[0065] S22-1: construct an initial prompt template based on the key information to be extracted from each public data information; use the initial prompt template to obtain the initial prompt of each public data information;

[0066] S22-2: Input each public data information and its initial prompt into the initial information extraction model to extract key information of each public data information;

[0067] S22-3: Accuracy of the initial information extraction model , recall rate With F1 score The weighted sum of , expressed as:

[0068] ;

[0069] in, Indicates the current state of Prompt, expressed as , Indicates public data information. Indicates the key information that has been extracted. Represents contextual information; Indicates the generated prompt, , and They represent the accuracy weight parameter, recall weight parameter and F1 score weight parameter respectively;

[0070] S22-4: Based on the reward function value, optimize the initial information extraction model and the initial Prompt template until the reward function value converges, and obtain the pre-trained information extraction model and optimized Prompt template;

[0071] S22-5: Input each public data information and the optimized Prompt template into a pre-trained information extraction model to obtain key information of each public data information.

[0072] Specifically, the process of building a knowledge graph based on the relationships and basic situations between people includes:

[0073] ① Data preparation, including data docking and data cleaning; the docking data refers to the public data of the docking personnel; data cleaning includes cleaning the collected data to remove duplicate, invalid and erroneous information;

[0074] ②Entity extraction, including extracting the entity types that need to be extracted according to the requirements;

[0075] ③ Attribute extraction, including determining the attributes that need to be extracted for each entity, and extracting corresponding information from text or structured data based on the defined attributes;

[0076] ④ Relationship extraction, including defining the relationship types between entities and using relationship extraction techniques to identify the relationships between entities described in the text;

[0077] ⑤ Graph construction, including creating a node for each entity in the graph and adding the entity's attribute information to the node; creating edges connecting entities in the graph based on the extracted relationships and marking the types of relationships;

[0078] ⑥ Graph verification and optimization, including checking whether the data and relationships in the graph are accurate by comparing with the original data or manual verification; further optimizing the graph by merging duplicate entities, repairing erroneous relationships, etc.

[0079] Specifically, in step S2, the text features of each public data information and the knowledge graph are integrated to obtain the fusion features of each public data information, including:

[0080] ①Convert text features into text feature vectors;

[0081] ② Use graph embedding technology (such as TransE, GraphSAGE, etc.) to convert entities and relationships in the knowledge graph into low-dimensional vectors;

[0082] ③ After concatenating the text feature vector with the low-dimensional vector, a long vector is obtained as a fusion feature.

[0083] Among them, there are two methods for converting text features into text feature vectors:

[0084] First, after using TF-IDF as the weight calculation method of the bag-of-words model, the text features are converted into word frequency vectors to obtain text feature vectors; each word corresponds to a dimension, and its value is the TF-IDF value of the word in the text.

[0085] The second is to use pre-trained models such as Word2Vec, GloVe or BERT, and use word embedding to convert text features into vector representations of fixed dimensions to obtain text feature vectors.

[0086] Specifically, this embodiment integrates the text features extracted from the pre-trained language model with the entity association information from the knowledge graph. This can enrich the representation ability of the features by integrating the entity attribute information and associated entity information in the knowledge graph into the language model representation, so that the trained model combines the rich information from the pre-trained language model and the domain knowledge graph, and can better understand the policy data.

[0087] The relief policy matching method described in the present invention, after obtaining a policy database containing relief policy information, uses the applicant's basic information as the current search condition to filter out a policy database to be matched from the policy database; obtains an application condition set for each relief policy information in the policy database to be matched, counts the number of occurrences of each application condition, and obtains the condition with the largest number of occurrences as the current condition to be filled in; uses the current search condition and the current condition to be filled in as new current search conditions to update the current search condition, the policy database to be matched, the application condition set, and the current condition to be filled in, until the current condition to be filled in is empty, and obtains the relief policy information in the updated policy database to be matched as the relief policy that meets the conditions filled in by the applicant. The present invention disassembles and sorts out the application conditions of the relief policy information, and the applicant can gradually fill in his own conditions according to the current conditions to be filled in given by the present invention, so that the present invention updates the policy database to be matched according to the conditions filled in by the applicant, and simultaneously optimizes the subsequent current conditions to be filled in, thereby reducing the misjudgment of the applicant's conditions, achieving rapid and accurate matching of relief policies, and improving the efficiency and accuracy of social relief. At the same time, applicants do not need to provide all of their own conditions to search for matching policies. They only need to gradually add the current conditions to be filled in according to the present invention, which reduces the burden on applicants and improves efficiency. The present invention uses crawler technology to crawl public data information in real time, and constructs a fusion feature of each public data information integrated by text features and knowledge graphs, which improves the real-time and accuracy of policy database construction. The real-time updated database of policies to be matched ensures the accuracy of the current relief policy information to be matched, improves the system operating performance, and retrieves more timely and accurate matching policies for applicants.

[0088] Specifically, in one embodiment of the present invention, in steps S4 and S5, the acquisition of the new current search condition can also be achieved by constructing a binary tree structure for each rescue policy information in the policy database to be matched, and the specific steps include:

[0089] For each rescue policy information in the policy database to be matched, the basic identity information of the applicant is used as the root node, and the application conditions in the application condition set of the rescue policy information are used as the child nodes of each layer under the root node in the order of the preset application conditions, so as to construct a binary tree structure for each rescue policy information in the policy database to be matched;

[0090] Obtain the child nodes of the root node in the binary tree structure of all the relief policy information in the policy database to be matched, count the number of child nodes representing each application condition, and obtain the application condition represented by the child node with the largest number as the current condition to be filled in by the applicant;

[0091] The application conditions represented by the root node of the applicant and the current conditions to be filled in are obtained as a new root node, and the application conditions represented by the new root node are used as new current search conditions.

[0092] The present invention uses the basic identity information of the applicant as the root node, constructs a binary tree structure for each rescue policy information in the policy database to be matched, and selects the application conditions represented by the child nodes with the highest frequency of occurrence from the child nodes of all the tree structure root nodes as the applicant's current conditions to be filled in; uses the applicant's basic identity information and the current conditions to be filled in as new current search conditions to update the policy database to be matched, the tree structure and the current conditions to be filled in, until the tree structure has no child nodes, and obtains the rescue policy information in the current policy database to be matched as the matching policy. By constructing a binary tree structure, the present invention intuitively and clearly displays the screening results of the application conditions input by the applicant each time, which is convenient for the applicant to understand the categories of application conditions that do not meet the requirements, speeds up the screening speed, and improves the accuracy and speed of policy matching.

[0093] In one embodiment of the present invention, after obtaining the information text of the public data information matching the applicant category, it also includes preprocessing all the public data information; the preprocessing includes data cleaning and data standardization.

[0094] Specifically, in an embodiment of the present invention, the applicant categories include the elderly, the disabled, low-income people and children in difficult circumstances; the basic identity information of the applicant includes name and ID number; the elements in the application condition set include place of household registration, annual per capita family income, employment status, disability category, disability level, and family member status.

[0095] Reference Figure 2The figure shows a flowchart for updating the current conditions to be filled in. The relief policy matching method of the present invention updates the matching policy database according to the applicant information corresponding to the current policy to be filled in, and obtains new current conditions to be filled in. Under different applicant categories, different applicant information corresponds to different current conditions to be filled in.

[0096] In an embodiment of the present invention, when the applicant category is an elderly person, fill in the name and ID number of the applicant preset in this embodiment, perform a preliminary screening based on the ID number, obtain policies that match the age, and form a policy database to be matched; at this time, the current condition to be filled in provided by the system is "whether it is a local household registration", select yes; update the current condition to be filled in to "select life assistance status", select daily life care needs; update the current condition to be filled in to "applicant object type", select the extremely poor support object; at this time, there is no new current condition to be filled in, end the matching, and check the relief policy information in the current policy database to be matched, which is the relief policy that meets the applicant's conditions.

[0097] In an embodiment of the present invention, when the applicant category is a disabled person, fill in the name and ID number of the applicant preset in this embodiment, whether there is a second-generation disability certificate, disability category and disability level; at this time, the current condition to be filled in provided by the system is "whether it is a local household registration", when no is selected, the updated policy database to be matched is empty, that is, there is no relief policy that meets the applicant's conditions; if it is changed to "local household registration", the current condition to be filled in is updated to "employment status", and employed is selected; the current condition to be filled in is updated to "family situation", and minimum living security is selected; the current condition to be filled in is updated to "need to apply for assistive devices and equipment that match the disability category", and no is selected; the current condition to be filled in is updated to "there are students in the family", and no is selected; the current condition to be filled in is updated to "mobile phone user", and yes is selected; there is no new current condition to be filled in at this time, the matching is ended, and the relief policy information in the current policy database to be matched is checked for relief policies that meet the applicant's conditions.

[0098] In an embodiment of the present invention, when the applicant category is a low-income population, fill in the name and ID number of the applicant preset in this embodiment; at this time, the current condition to be filled in provided by the system is "whether it is a local household registration", select yes, then update the current condition to be filled in to "family member profile", select none of the above; update the current condition to be filled in to "family average monthly income", fill in 3000; update the current condition to be filled in to "family motor vehicle", select no motor vehicle; update the current condition to be filled in to "family housing is below the standard", select no; update the current condition to be filled in to "the family purchased a house one year before the application", select no; update the current condition to be filled in to "the family has non-residential housing", select no; update the current condition to be filled in to "the remaining income after paying medical expenses is lower than the minimum living standard", select yes; update the current condition to be filled in to "the family bank deposit is lower than the standard", select yes; update the current condition to be filled in to "the family encounters an emergency", select none of the above; at this time, the updated policy database to be matched is empty, indicating that there is no relief policy that meets the applicant's information.

[0099] In an embodiment of the present invention, when the applicant category is a child in difficult circumstances, fill in the name and ID number of the applicant preset in this embodiment; at this time, the current condition to be filled in provided by the system is "whether it is a local household registration", select yes, then update the current condition to be filled in to "whether it is local medical insurance", select yes; update the current condition to be filled in to "child situation category", select children without parental guardianship; update the current condition to be filled in to "child's father's situation", select missing; update the current condition to be filled in to "child's mother's situation", select none of the above; at this time, the updated policy database to be matched is empty, indicating that there is no relief policy that meets the applicant's information.

[0100] Based on the above embodiments, it can be known that when selecting different options for local household registration, the matching results that appear are also different, and the next current condition to be filled in is also inconsistent. This embodiment uses the least information input according to personalized needs to obtain the policy that the applicant can match as quickly as possible. The interface design of the present invention is simple and intuitive, easy for users to understand and operate. It adopts a guided condition filling method, allowing users to fill in application information more conveniently, thereby improving the user experience and work efficiency. In an embodiment of the present invention, different public data information is crawled according to different applicant categories, and a policy database that matches the applicant category is constructed to achieve retrieval matching in a variety of different scenarios.

[0101] Based on the above embodiment, the embodiment of the present invention further provides a relief policy matching device, including:

[0102] The policy database construction module 100 is used to obtain information text of public data information matching the applicant category from the public relief policy system using crawler technology; the public data information includes relief policy information and non-rescue policy information; based on the information text of each public data information, extract the text features of each public data information, and construct a knowledge graph of each public data information; integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; based on the fusion features of all public data information, screen out the relief policy information in the public data information to form a policy database;

[0103] The to-be-matched policy database construction module 200 is used to obtain the basic identity information of the applicant as the initial search condition; select the relief policy information matching the initial search condition from the policy database to form the to-be-matched policy database;

[0104] The policy database update module 300 to be matched is used to obtain all application conditions of each rescue policy information in the policy database to be matched, and form an application condition set for each rescue policy information; based on the application condition set of all rescue policy information in the policy database to be matched, count the number of occurrences of each application condition; obtain the application condition with the largest number of occurrences as the current condition to be filled in; if the current condition to be filled in is not empty, obtain the applicant information corresponding to the current condition to be filled in as the current search condition, screen the rescue policy information in the policy database to be matched that matches the current search condition, and update the policy database to be matched;

[0105] The matching policy acquisition module 400 is used to repeatedly execute the matching policy database update module until the current to-be-filled condition is empty, and obtain the relief policy information in the updated to-be-matched policy database as the relief policy that meets the conditions filled in by the applicant.

[0106] The rescue policy matching device of this embodiment is used to implement the aforementioned rescue policy matching method, so the specific implementation methods of the rescue policy matching device can be seen in the implementation method part of the rescue policy matching method in the previous text, for example, the policy database construction module 100 is used to implement steps S1 and S2 in the above-mentioned rescue policy matching method; the to-be-matched policy database construction module 200 is used to implement step S3 in the above-mentioned rescue policy matching method; the to-be-matched policy database update module 300 is used to implement steps S4 and S5 in the above-mentioned rescue policy matching method; the matching policy acquisition module 400 is used to implement step S6 in the above-mentioned rescue policy matching method, so its specific implementation methods can refer to the description of the corresponding parts of the implementation methods, which will not be repeated here.

[0107] The relief policy matching method and device described in the present invention, after obtaining a policy database containing relief policy information, uses the basic information of the applicant as the current search condition to filter out the policy database to be matched from the policy database; obtains the application condition set of each relief policy information in the policy database to be matched, counts the number of occurrences of each application condition, and obtains the condition with the largest number of occurrences as the current condition to be filled in; uses the current search condition and the current condition to be filled in as the new current search condition to update the current search condition, the policy database to be matched, the application condition set and the current condition to be filled in, until the current condition to be filled in is empty, and obtains the relief policy information in the updated policy database to be matched as the relief policy that meets the conditions filled in by the applicant. The present invention disassembles and sorts out the application conditions of the relief policy information, and the applicant can gradually fill in his own conditions according to the current conditions to be filled in given by the present invention, so that the present invention updates the policy database to be matched according to the conditions filled in by the applicant, and simultaneously optimizes the subsequent current conditions to be filled in, thereby reducing the misjudgment of the applicant's conditions, achieving rapid and accurate matching of relief policies, and improving the efficiency and accuracy of social relief. At the same time, applicants do not need to provide all of their own conditions to search for matching policies. They only need to gradually add the current conditions to be filled in according to the present invention, which reduces the burden on applicants and improves efficiency. The present invention uses crawler technology to crawl public data information in real time, and constructs a fusion feature of each public data information integrated by text features and knowledge graphs, which improves the real-time and accuracy of policy database construction. The real-time updated database of policies to be matched ensures the accuracy of the current relief policy information to be matched, improves the system operating performance, and retrieves more timely and accurate matching policies for applicants.

[0108] In addition, the present invention has the ability to quickly build policy matching systems in other fields. By conditionally decomposing policies in other fields, it can quickly build a policy matching system that can be applied to other fields such as talent policy matching systems and housing policy matching systems to meet the needs of different fields. It has high system scalability and reusability.

[0109] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0110] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0111] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0113] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A method for matching relief policies. It is characterized in that include: S1: using crawler technology to obtain information text of public data information matching the applicant category from the public assistance policy system; the public data information includes assistance policy information and non-assistance policy information; S2: Based on the information text of each public data information, extract the text features of each public data information and construct a knowledge graph for each public data information; integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; Based on the fusion characteristics of all public data information, the rescue policy information in the public data information is screened out to form a policy database; S3: Obtain the basic identity information of the applicant as the initial search condition; select the relief policy information matching the initial search condition from the policy database to form a policy database to be matched; S4: Obtain all application conditions of each rescue policy information in the to-be-matched policy database to form an application condition set for each rescue policy information; S5: Based on the application condition set of all the relief policy information in the policy database to be matched, count the number of occurrences of each application condition; Get the application condition with the most occurrences as the current condition to be filled in; If the current condition to be filled in is not empty, the applicant information corresponding to the current condition to be filled in is obtained as the current search condition, the assistance policy information matching the current search condition in the policy database to be matched is screened, and the policy database to be matched is updated; Among them, the current search conditions and the current conditions to be filled in are used as new current search conditions to update the current search conditions, the policy database to be matched, the application condition set and the current conditions to be filled in; the acquisition of the new current search conditions includes: for each rescue policy information in the policy database to be matched, the basic identity information of the applicant is used as the root node, and the application conditions in the application condition set of the rescue policy information are used as the child nodes of each layer under the root node in the order of preset application conditions, to construct a binary tree structure for each rescue policy information in the policy database to be matched; the child nodes of the root node in the binary tree structure of all rescue policy information in the policy database to be matched are obtained, the number of child nodes representing each application condition is counted, and the application condition represented by the child node with the largest number is obtained as the current condition to be filled in of the applicant; the application condition represented by the root node of the applicant and the current condition to be filled in are obtained as the new root node, and the application condition represented by the new root node is used as the new current search condition; S6: Repeat steps S4 to S5 until the current conditions to be filled in are empty, and obtain the updated relief policy information in the policy database to be matched as the relief policy that meets the conditions filled in by the applicant.

2. The method for matching assistance policies according to claim 1, It is characterized in that If the updated policy database to be matched in step S5 is empty, there is no relief policy that meets the conditions filled in by the applicant.

3. The relief policy matching method according to claim 1, It is characterized in that The applicant categories include the elderly, the disabled, low-income people and children in difficult circumstances.

4. The method for matching assistance policies according to claim 1, It is characterized in that The basic identity information of the applicant includes name and ID number; the elements in the application condition set include registered residence, annual per capita family income, employment status, disability type, disability level, and family member status.

5. The relief policy matching method according to claim 1, It is characterized in that Based on the information text of each public data information, the text features of each public data information are extracted, and a knowledge graph of each public data information is constructed; the text features of each public data information are integrated with the knowledge graph to obtain the fusion features of each public data information; Based on the fusion characteristics of all public data information, the rescue policy information in the public data information is screened out to form a policy database, including: Use pre-trained language models to extract text features of each public data information; Utilize a pre-trained information extraction model based on a dynamic prompt generation strategy to extract key information of each public data information; the key information of the public data information includes policy name, applicable objects, application conditions and application process; For each piece of public data information, the key information of the public data information is used as a node, and the logical relationship between the key information is obtained as an edge to construct a knowledge graph for each piece of public data information; Integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; Based on the fusion features of all public data information, pre-trained classifiers are used to filter out rescue policy information from all public data information to form a policy database.

6. The method for matching assistance policies according to claim 5, It is characterized in that The pre-trained language models include BERT, RoBERTa and XLNet.

7. The method for matching assistance policies according to claim 5, It is characterized in that Using the pre-trained information extraction model based on the dynamic prompt generation strategy, the key information of each public data information is extracted, including: Build an initial prompt template based on the key information to be extracted from each public data information; Use the initial prompt template to obtain the initial prompt for each public data information; Input each public data information and its initial prompt into the initial information extraction model to extract the key information of each public data information; Construct a reward function based on the weighted sum of the accuracy, recall, and F1 score of the initial information extraction model; Based on the reward function value, optimize the initial information extraction model and the initial prompt template until the reward function value converges, and obtain the pre-trained information extraction model and optimized prompt template; Input each public data information and the optimized prompt template into the pre-trained information extraction model to obtain the key information of each public data information.

8. The relief policy matching method according to claim 1, It is characterized in that After obtaining the information text of the public data information matching the applicant category, it also includes preprocessing all the public data information; the preprocessing includes data cleaning and data standardization.

9. A rescue policy matching device, It is characterized in that include: A policy database construction module is used to use crawler technology to obtain information text of public data information matching the applicant category from the public assistance policy system; the public data information includes assistance policy information and non-assistance policy information; Based on the information text of each public data information, extract the text features of each public data information and construct a knowledge graph for each public data information; integrate the text features of each public data information with the knowledge graph to obtain the fusion features of each public data information; Based on the fusion characteristics of all public data information, the rescue policy information in the public data information is screened out to form a policy database; The module for constructing the policy database to be matched is used to obtain the basic identity information of the applicant as the initial search condition; select the relief policy information matching the initial search condition from the policy database to form the policy database to be matched; The matching policy database update module is used to obtain all application conditions of each rescue policy information in the matching policy database to form an application condition set for each rescue policy information; based on the application condition set of all rescue policy information in the matching policy database, count the number of occurrences of each application condition; Get the application condition with the most occurrences as the current condition to be filled in; If the current condition to be filled in is not empty, then the applicant information corresponding to the current condition to be filled in is obtained as the current search condition, and the relief policy information matching the current search condition in the policy database to be matched is screened, and the policy database to be matched is updated; wherein, the current search condition and the current condition to be filled in are used as the new current search condition to update the current search condition, the policy database to be matched, the application condition set and the current condition to be filled in; the acquisition of the new current search condition includes: for each relief policy information in the policy database to be matched, the basic identity information of the applicant is used as the root node, and the application conditions in the application condition set of the relief policy information are used as the child nodes of each layer under the root node in the order of preset application conditions, to construct a binary tree structure for each relief policy information in the policy database to be matched; the child nodes of the root node in the binary tree structure of all relief policy information in the policy database to be matched are obtained, the number of child nodes representing each application condition is counted, and the application condition represented by the child node with the largest number is obtained as the current condition to be filled in of the applicant; the application condition represented by the root node of the applicant and the current condition to be filled in are obtained as the new root node, and the application condition represented by the new root node is used as the new current search condition; The matching policy acquisition module is used to repeatedly execute the matching policy database update module until the current conditions to be filled in are empty, and obtain the relief policy information in the updated matching policy database as the relief policy that meets the conditions filled in by the applicant.

Citation Information

Patent Citations

  • Quick retrieval method and system

    CN112445900A

  • Information processing method and device, equipment, medium and product

    CN114817750A