Water conservancy law enforcement free tailoring right recommendation method based on knowledge graph

By building a knowledge graph and recommendation engine in the field of water conservancy law enforcement, the problem of difficulty in obtaining information when water conservancy law enforcement officers exercise their discretion has been solved, intelligent law enforcement auxiliary tools have been realized, and the efficiency and quality of law enforcement have been improved.

CN118760709APending Publication Date: 2024-10-11YELLOW RIVER ENG CONSULTING CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410993113.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

It is difficult for water conservancy law enforcement officials to obtain timely, accurate, and comprehensive information and suggestions when exercising their discretion, which affects the effectiveness and quality of law enforcement.

Method used

Using a knowledge graph-based method, natural language processing is performed through large language models, entities and relationships are extracted, and a knowledge graph in the field of water conservancy law enforcement is constructed. It is also combined with speech recognition technology and knowledge graph correlation algorithm to build a water conservancy law enforcement recommendation engine to automatically recommend compliance with Legal, regulatory and discretionary advice on the merits of the case.

Benefits of technology

It provides an intelligent, convenient and efficient discretionary power recommendation system to help law enforcement personnel quickly and accurately find applicable laws, regulations or discretionary power, improving law enforcement efficiency, fairness and legality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760709A_ABST
    Figure CN118760709A_ABST
Patent Text Reader

Abstract

The invention discloses a water conservancy law enforcement free tailoring weight recommendation method based on a knowledge graph, and the method comprises the steps: carrying out the information extraction of text knowledge of water conservancy law enforcement laws and regulations and free tailoring weight through the natural language processing capability of a large language model, constructing an ontology model in the field of water conservancy law enforcement, and forming a structured water conservancy law enforcement knowledge base; knowledge in the field of water conservancy law enforcement can be effectively represented and stored, and retrieval and query are facilitated. Meanwhile, by means of the character and audio recognition technology, case descriptions input or recorded by law enforcement officers are converted into texts, word segmentation, part-of-speech tagging, named entity recognition and other operations are conducted on the texts, keywords and entities in the case are extracted, matching with nodes in the knowledge graph is conducted through a graph algorithm, the matching degree is calculated, and the knowledge graph is obtained. And laws and regulations or free tailoring weights related to the case are recommended.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water conservancy law enforcement, and in particular to a method for recommending water conservancy law enforcement discretion based on a knowledge graph. Background Art

[0002] Water conservancy law enforcement refers to the activities of water conservancy administrative organs to supervise, inspect and handle water conservancy construction, water resources management, flood control and drought relief, soil and water conservation and other water conservancy affairs in accordance with laws, regulations, rules and national policies. Water conservancy law enforcement is an important part of water conservancy administration and an important means to maintain water conservancy legal system, ensure water conservancy safety and promote water conservancy development.

[0003] There are many laws and regulations involved in water conservancy law enforcement, and the content is relatively complex. In the process of law enforcement, law enforcement officers need to correctly apply laws and regulations according to the specific circumstances of the case and make reasonable law enforcement decisions. Due to the particularity and complexity of water conservancy law enforcement, sometimes the provisions of laws and regulations cannot fully adapt to changes in the case, or there are conflicts, inconsistencies, and ambiguities between laws and regulations, which leads to difficulties and doubts in law enforcement for law enforcement officers and makes it impossible to make accurate law enforcement judgments. In order to solve these problems, water conservancy law enforcement laws and regulations give law enforcement officers a certain degree of discretion, that is, within the range and scope prescribed by laws and regulations, law enforcement officers can choose the law enforcement method and law enforcement results according to the specific circumstances of the case, legal principles and purposes. Discretion is an important part of administrative power and a necessary means to improve administrative efficiency, achieve administrative justice, and protect the legitimate rights and interests of the parties.

[0004] The exercise of discretionary power also has certain difficulties and risks. When exercising discretionary power, law enforcement officers need to consider many factors, such as legal provisions, social effects, public interests, and the demands of the parties, and at the same time avoid subjective arbitrariness, abuse of power, and unfair law enforcement. Therefore, when exercising discretionary power, law enforcement officers need certain guidance and reference in order to make reasonable, legal, and reasonable law enforcement decisions. In traditional methods, water conservancy law enforcement officers mainly rely on law enforcement experience, law enforcement norms, and law enforcement guidelines for reference and judgment when exercising discretionary power, but these methods have certain limitations and shortcomings, such as individual differences in law enforcement experience, lags in law enforcement norms, and imperfections in law enforcement guidelines. As a result, it is difficult for law enforcement officers to obtain timely, accurate, and comprehensive information and suggestions when exercising discretionary power, which affects the effectiveness and quality of law enforcement. How to use modern information technology to provide water conservancy law enforcement officers with an intelligent, convenient, and efficient discretionary power recommendation system is a technical problem that needs to be solved in the current field of water conservancy law enforcement. Summary of the invention

[0005] The present invention aims to provide a method for recommending water conservancy law enforcement discretion based on knowledge graph.

[0006] To achieve the above object, the present invention adopts the following technical solutions: The method for recommending water conservancy law enforcement discretion based on knowledge graph of the present invention comprises the following steps: S1, collect laws and regulations related to water conservancy law enforcement and discretionary power regulations, and obtain historical case files and judgments on water conservancy law enforcement; S2, for the data collected in step S1, use the large language model to perform natural language processing, extract entities and relationships, and create a knowledge graph in the field of water conservancy law enforcement; S3, combining speech recognition technology, knowledge graph association algorithm and the water conservancy law enforcement field knowledge graph to build a water conservancy law enforcement recommendation engine; S4, using mobile law enforcement equipment to collect sounds from the crime scene; S5, recording the sounds collected in step S4 into the water law enforcement recommendation engine, and automatically recommending laws, regulations and discretionary power suggestions that are in line with the current case.

[0007] Furthermore, in step S1, the collected data is converted into digital files through OCR text recognition technology.

[0008] Furthermore, step S2 specifically includes: S2.1, based on the data collected in step S1, identify and extract entities and relations, construct entity-relationship-entity pairs, and form a subject-predicate-object triple library; S2.2, based on the triple library, create a knowledge graph in the field of water law enforcement using knowledge fusion and graph construction technology.

[0009] Furthermore, the sounds at the scene in step S4 include confessions recorded at the law enforcement scene.

[0010] Furthermore, step S5 specifically includes: S5.1, based on speech recognition technology, recognizing the sounds at the scene into text; S5.2, based on the recognized text, use the knowledge graph association algorithm to calculate the matching degree between the text and the triple data in the knowledge graph; S5.3, output the top 5 triplet data and correlation scores from high to low in terms of correlation.

[0011] Furthermore, the knowledge graph association algorithm is based on a graph structure reasoning algorithm, specifically a path sorting algorithm, which uses the relationship path as a feature to predict the relationship between entities in the knowledge graph.

[0012] The advantage of the present invention is that it utilizes the natural language processing capability of a large language model to extract information from the textual knowledge of water conservancy law enforcement laws and regulations and discretionary power, constructs an ontology model in the field of water conservancy law enforcement, and forms a structured water conservancy law enforcement knowledge base, which can effectively represent and store knowledge in the field of water conservancy law enforcement, and facilitates retrieval and query. At the same time, using text and audio recognition technology, the case description input or recorded by law enforcement personnel is converted into text, and the text is subjected to operations such as word segmentation, part-of-speech tagging, and named entity recognition, and the keywords and entities in the case are extracted, and the nodes in the knowledge graph are matched through a graph algorithm, and the matching degree is calculated, and the laws and regulations or discretionary power related to the case are recommended. The present invention provides law enforcement personnel with an intelligent law enforcement auxiliary tool, which can effectively help water conservancy law enforcement personnel quickly and accurately find applicable laws and regulations or discretionary power in the process of law enforcement, and improve the efficiency and fairness, legality, and scientificity of law enforcement. The present invention is suitable for mobile terminals, and can realize online and real-time water conservancy law enforcement discretionary power recommendation, which is convenient for law enforcement personnel to enforce the law anytime and anywhere, and improves the convenience and flexibility of law enforcement. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a workflow diagram of the method of the present invention.

[0014] Figure 2 It is a system flow chart of the method described in the present invention. DETAILED DESCRIPTION

[0015] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only 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.

[0016] Example 1 The water conservancy law enforcement discretionary power recommendation method based on knowledge graph of the present invention is as follows: Figure 1 As shown, the specific steps include: S1. Collect laws, regulations and discretionary power regulations related to water law enforcement, and obtain historical case files and judgments on water law enforcement.

[0017] The collected information includes provincial and municipal water conservancy law enforcement laws and regulations in relevant regions, specifically the "Administrative Penalty Law of the People's Republic of China", "Water Law of the People's Republic of China", "Measures for the Implementation of Water Administrative Penalties", etc. The discretionary power includes regulations issued by water administration departments at the county and municipal levels that pilot water administrative penalties.

[0018] The process of transcribing the collected paper materials into electronic documents includes scanning the paper documents into electronic images and converting them into digital archives through OCR text recognition technology.

[0019] S2, for the data collected in step S1, use the large language model to perform natural language processing and create a knowledge graph in the field of water conservancy law enforcement. Specifically include: S2.1, based on the data collected in step S1, use the large language model to perform natural language processing, extract entities and relations, build entity-relationship-entity pairs, and form a subject-predicate-object triple library; S2.2, based on the triple library, create a knowledge graph in the field of water law enforcement using knowledge fusion and graph construction technology.

[0020] A knowledge graph is a data structure used to represent and store knowledge. It consists of entities, attributes, relationships and other elements. It can describe the ontology, concepts, rules and other information in the knowledge field, and realize the visualization, queryability and reasoning functions of knowledge.

[0021] In the present invention, the inventors use the natural language learning processing capabilities of the large language model to extract the entities, attributes, relationships and other information of the data collected in step S1. Then, the ontology model of the water conservancy law enforcement field is constructed by using knowledge fusion and graph construction technology to define entity categories, attributes, relationships, etc., integrate knowledge from different data sources, and solve problems such as entity alignment and relationship alignment. Finally, the information such as entities, attributes, and relationships is stored in the knowledge graph to form a structured knowledge graph in the field of water conservancy law enforcement.

[0022] The creativity of the present invention lies in: innovatively using a large language model to complete the tasks of data preprocessing, named entity recognition, and relationship recognition in the process of building a knowledge graph. By directly inputting relevant data into the large language model and requiring it to extract entities and relationships and organize triples, data preparation for building a knowledge graph can be achieved.

[0023] Specifically, in constructing a knowledge graph, it is first necessary to convert multi-source heterogeneous data into structured data, including word segmentation, stop word removal, stemming, etc., in preparation for subsequent named entity recognition and relationship extraction. The traditional process of converting multi-source heterogeneous data into structured data is to manually construct dictionaries and rules. This method is limited by the coverage of the dictionary and the rigidity of the rules, and the cost of manual construction is high.

[0024] The natural language learning methods used in traditional named entity recognition include rule-based and statistical machine learning models, which also rely on feature engineering and data annotation in the field of water administration law enforcement to build entity recognition models, which consumes a lot of manpower.

[0025] Traditional relationship recognition is mostly based on deep learning methods, which rely on training data and require a lot of labeling work; the accuracy of the model in relationship extraction also depends on the model parameters (convolutional layer, output function, fitting parameters), and the selection and testing of the model take a lot of time.

[0026] The inventors use a large language model to complete the data preprocessing task in the knowledge graph process. As a pre-trained model, the large language model already has the ability to perform tasks such as automatic word segmentation, and it supports multimodal input conditions, that is, the input data is not limited to text, but also includes voice audio input, etc., and can quickly convert multi-source heterogeneous data into structured data. At the same time, the big data model can also automatically learn contextual information, can more accurately identify entities, and no longer need to manually design features, thereby improving the efficiency and accuracy of named entity recognition in natural language analysis and processing. Moreover, the large language model that has learned a large amount of text data itself has a better ability to capture the semantic relationship between entities.

[0027] Therefore, the large language model can automatically learn high-level feature representations from raw data without manual feature engineering, which is advantageous for processing complex and abstract natural language tasks. The present invention utilizes the advantages of the large language model in natural language processing, abandons the traditional natural language processing process, and instead uses a large language model that has been trained on a large scale to complete the processing of data such as laws and regulations related to water conservancy law enforcement business and discretionary power regulations, historical water conservancy law enforcement case judgments, etc., which greatly improves the efficiency of creating knowledge graphs in the field of water conservancy law enforcement, simplifies the creation steps of knowledge graphs in the field of water conservancy law enforcement, and has high accuracy.

[0028] The specific large prediction models that can be used include Tongyi Qianwen, Wenxin Yiyan, chatGPT, etc. Take the large language model Tongyi Qianwen as an example. The Tongyi Qianwen Qwen-72B large model is based on high-quality data training of 3T tokens, combining natural language processing and machine learning technology, and has powerful natural language processing capabilities. For example, if the "Water Law of the People's Republic of China" is segmented, words such as "People's Republic of China" and "Water Law" can be obtained. If the "Water Law" is tagged with parts of speech, labels such as "noun" and "laws and regulations" can be obtained. If the "People's Republic of China" is recognized by named entities, labels such as "place name" and "country" can be obtained. If the "Water Law of the People's Republic of China" is extracted, relations such as "promulgation" and "applicability" can be obtained.

[0029] Then, based on the results of information extraction, we define entity categories such as "laws and regulations", "discretion", "case details", and "law enforcement personnel", define attributes such as "promulgation time", "scope of application", "content", and "penalty standards", and define relationships such as "promulgation", "applicable", "involving", and "recommended". This information is stored in the knowledge graph to form a water conservancy law enforcement knowledge graph.

[0030] S3, combining speech recognition technology, knowledge graph association algorithm and the water law enforcement field knowledge graph to build a water law enforcement recommendation engine.

[0031] The knowledge graph relevance algorithm is a reasoning algorithm based on the graph structure, specifically a path sorting algorithm. It uses the relationship path as a feature to predict the relationship between entities in the knowledge graph.

[0032] S4, using mobile law enforcement equipment to collect the sounds at the scene of the case. Mobile law enforcement equipment includes smart phones and law enforcement recorders that support code secondary development. The sounds at the scene include confessions recorded at the law enforcement scene.

[0033] S5, recording the sounds collected in step S4 into the water conservancy law enforcement recommendation engine, and automatically recommending laws, regulations and discretionary power suggestions that are in line with the current case. Specifically: S5.1, based on speech recognition technology, recognizing the sounds at the scene into text; S5.2, based on the recognized text, use the knowledge graph association algorithm to calculate the matching degree between the text and the triple data in the knowledge graph; S5.3, output the top 5 triplet data and correlation scores from high to low in terms of correlation.

[0034] Specifically, during the law enforcement process, the case description is input or recorded through a mobile terminal, and converted into text using text and audio recognition technology. The text is then segmented, POS tagged, and named entity recognized to extract keywords and entities from the case. The text is then matched with the nodes in the knowledge graph through a graph algorithm, and the degree of match is calculated. Based on the degree of match, laws and regulations related to the case are recommended.

[0035] Law enforcement officers input or record the sentence "A factory discharged sewage from the river, causing the river water to turn black and affecting the lives of residents downstream". The sentence is converted into text using text and audio recognition technology. The text is then segmented, POS tagged, and named entity recognized to extract keywords and entities such as "factory", "riverside", "discharge", "sewage", "river water", "blackening", "downstream", "residents", and "life". The keywords and entities are matched with the nodes in the knowledge graph through graph algorithms, and the degree of match is calculated. Based on the degree of match, laws and regulations related to the case, such as Article 46, Article 47, and Article 49 of the Water Law of the People's Republic of China, are recommended.

[0036] If applicable laws and regulations cannot be found in the case, the most relevant discretion will be matched in the knowledge graph, and a compliance score will be given for law enforcement officers to refer to and choose. Law enforcement officers input or record "A villager was washing clothes by the river, causing the river water to become muddy, affecting the lives of downstream residents." The text is converted into text using text and audio recognition technology. The text is segmented, part-of-speech tagged, and named entity recognized to extract keywords and entities such as "villagers," "riverside," "washing clothes," "river water," "muddy," "downstream," "residents," and "life." The graph algorithm is used to match the nodes in the knowledge graph. If applicable laws and regulations cannot be found in the case, the most relevant discretion will be matched in the knowledge graph. "For minor pollution that does not cause serious consequences, a verbal warning or a fine of no more than 100 yuan may be given," and a compliance score of "0.8" will be given for law enforcement officers to refer to and choose. For example Figure 2 This is a system flow chart of the method described in the present invention, which shows in detail the construction process of the knowledge graph in the field of water conservancy law enforcement of the present invention, as well as the input of the case through the water conservancy law enforcement recommendation engine, data processing of the case, and then automatic recommendation of laws, regulations and discretionary power suggestions that are in line with the current case based on the graph-based knowledge recommendation algorithm.

[0037] Example 2 Specific application of the water conservancy law enforcement discretionary power recommendation method based on knowledge graph of the present invention The first step is to use natural language processing technology to perform word segmentation, part-of-speech tagging, named entity recognition, relationship extraction and other operations on the text knowledge of water conservancy law enforcement laws and regulations and discretionary powers to extract information such as entities, attributes, and relationships in the field of water conservancy law enforcement.

[0038] The present invention processes the textual knowledge of water conservancy law enforcement laws and regulations and discretionary power to obtain partial information extraction results as shown in Table 1 below.

[0039] Table 1 In the second step, based on the results of information extraction, an ontology model in the field of water conservancy law enforcement is constructed, concepts such as entity categories, attributes, and relationships are defined, and information such as entities, attributes, and relationships is stored in a knowledge graph to form a structured knowledge base in the field of water conservancy law enforcement.

[0040] The present invention uses Neo4j knowledge graph construction engine to perform ontology modeling on the results of information extraction and define concepts such as entity categories, attributes, and relationships, as follows: Entity categories: laws and regulations, discretion, case details, law enforcement officers, etc. Attributes: promulgation time, scope of application, content, penalty standards, etc. Relationship: promulgate, apply, involve, recommend, etc. Store entities, attributes, relationships and other information in the knowledge graph to form a structured water law enforcement knowledge base.

[0041] The third step is to input or record the case description through a mobile terminal during the law enforcement process, convert the case description into text using text and audio recognition technology, perform operations such as word segmentation, part-of-speech tagging, and named entity recognition on the text, extract the keywords and entities in the case, match them with the nodes in the knowledge graph through graph algorithms, calculate the degree of match, and recommend laws and regulations related to the case based on the degree of match.

[0042] The present invention adopts iFlytek voice to convert the case description input or recorded by law enforcement personnel into text, and performs operations such as word segmentation, part-of-speech tagging, and named entity recognition on the text to extract keywords and entities in the case.

[0043] For example, the case description: A factory discharged sewage at the riverside, causing the river water to turn black, affecting the lives of downstream residents. Extract keywords and entities: factory, riverside, discharge, sewage, river water, turn black, downstream, residents, life.

[0044] The present invention uses the SimRank algorithm to match the nodes in the knowledge graph, calculate the matching degree, and recommend the laws and regulations related to the case according to the matching degree as follows: Matching nodes: Article 46, Article 47, and Article 49 of the Water Law of the People's Republic of China. The matching degrees are 0.9, 0.8, and 0.7 respectively.

[0045] Finally, the present invention displays the recommendation results to law enforcement personnel in a list or other form through the interface of the mobile terminal, allowing the law enforcement personnel to select applicable laws and regulations and discretion.

Claims

1. A method for recommending water conservancy law enforcement discretion based on knowledge graph, characterized by: The following steps are involved: S1, collect laws and regulations related to water conservancy law enforcement and discretionary power regulations, and obtain historical case files and judgments on water conservancy law enforcement; S2, for the data collected in step S1, use the large language model to perform natural language processing, extract entities and relationships, and create a knowledge graph in the field of water conservancy law enforcement; S3, combining speech recognition technology, knowledge graph association algorithm and the water conservancy law enforcement field knowledge graph to build a water conservancy law enforcement recommendation engine; S4, using mobile law enforcement equipment to collect sounds from the crime scene; S5, recording the sounds collected in step S4 into the water law enforcement recommendation engine, and automatically recommending laws, regulations and discretionary power suggestions that are in line with the current case.

2. According to claim 1, a method for recommending water conservancy law enforcement discretion based on knowledge graph, characterized in that: In step S1, the collected data is converted into digital files through OCR text recognition technology.

3. According to the knowledge graph-based water conservancy law enforcement discretionary power recommendation method of claim 1, it is characterized by: Step S2 specifically includes: S2.1, based on the data collected in step S1, identify and extract entities and relations, construct entity-relationship-entity pairs, and form a subject-predicate-object triple library; S2.2, based on the triple library, create a knowledge graph in the field of water law enforcement using knowledge fusion and graph construction technology.

4. According to claim 1, a method for recommending water conservancy law enforcement discretion based on knowledge graph, characterized in that: The sounds at the scene in step S4 include the confessions recorded at the law enforcement scene.

5. According to the knowledge graph-based water conservancy law enforcement discretionary power recommendation method of claim 1, it is characterized by: Step S5 specifically includes: S5.1, based on speech recognition technology, recognizing the sounds at the scene into text; S5.2, based on the recognized text, use the knowledge graph association algorithm to calculate the matching degree between the text and the triple data in the knowledge graph; S5.3, output the top 5 triplet data and correlation scores from high to low in terms of correlation.

6. According to claim 1, a method for recommending water conservancy law enforcement discretion based on knowledge graph, characterized in that: The knowledge graph association algorithm is based on a graph structure reasoning algorithm, specifically a path sorting algorithm, which uses relationship paths as features to predict the relationships between entities in the knowledge graph.

Citation Information

Cited By

  • Text recommendation system and method for interpreting audit report based on large model

    CN119088950A

  • Text recommendation system and method for interpreting audit reports based on large models

    CN119088950B

  • Voice interaction task execution method and device based on large model, equipment and medium

    CN120472906A

  • Water conservancy administrative law enforcement auxiliary method based on large model

    CN121256009A

  • A large model-based water conservancy administrative law enforcement auxiliary method

    CN121256009B