Automatic recognition of social scenes and dynamic generation of inspection plans

By identifying and pushing unknown scenarios and dynamically generating checklists, it solves the problem that the existing system cannot identify unknown scenarios and the checklist format is fixed, achieves the effect of timely processing of new scenarios and highlights key issues, and ensures the stable development of society.

CN115062107BActive Publication Date: 2024-09-13ZHEJIANG JIAXING DIGITAL CITY LAB CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210657033.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2024-09-13
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

The existing system cannot identify unknown scenarios, making it difficult for relevant departments to detect new scenarios and new problems early. The format of the checklist is fixed, unable to highlight key issues, and it is easy for qualified scenarios to be frequently spot-checked.

Method used

By receiving open social event text, extract scenes and events, conduct similarity matching, push unknown scenes to relevant departments, and dynamically generate inspection lists to highlight key inspection items.

Benefits of technology

It realizes the identification of unknown scenes and the timely processing of new scenes, dynamically generates checklists, highlights key issues, reduces repeated inspections, and ensures the long-term stable and orderly development of society.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115062107B
    Figure CN115062107B
Patent Text Reader

Abstract

This solution discloses a method for automatic identification of social scenes and dynamic generation of inspection plans, including: S1. Receive open social event texts; S2. Extract scenes and events from social event texts respectively; S3. Match scenes with known scenes, and classify corresponding scenes as known scenes or unknown scenes; S4. List known scenes in the pending list, and list unknown scenes in the candidate scene list; S5. Push scenes that meet the push conditions in the candidate scene list, or scenes and corresponding events to relevant departments so that relevant departments can add corresponding unknown scenes to the scene cabin; dynamically generate inspection lists based on the pending list, and dispatch inspection work to relevant departments based on the inspection lists and early warning rules. This solution provides technical support and data support for relevant departments to expand the known scenes of the comprehensive inspection system, and can provide key inspection reminders for prominent problems in the scene in advance, and weaken the inspection of long-term qualified inspection items.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of automatic recognition of social scenes, and in particular relates to a method for automatic recognition of social scenes and dynamic generation of inspection plans thereof. Background Art

[0002] The "comprehensive check once" system generates "red, yellow and green" three-color warnings for corresponding scenarios by automatically calculating and matching scenarios, and triggers the inspection plan according to the warning rules. After the inspectors add the inspection tasks, the system generates an inspection checklist with one click. The contents of the inspection checklist mainly include the inspection items and corresponding inspection departments for each scenario, and are automatically distributed to relevant departments, thus avoiding random and repeated inspections.

[0003] However, the current operating system still has some shortcomings. For example, the existing operating system has limited known scenarios. When the input data scenario does not belong to one of the known scenarios, the system will not be able to identify the unknown scenario. The system itself is not conducive to the relevant departments to discover and inspect new scenarios and new problems as early as possible. In addition, the inspection checklist format of the existing operating system is fixed, and the inspection items corresponding to the prominent problems complained by the public are not pinned to the top, which makes it impossible to highlight key issues, and it is easy for qualified scenarios to be frequently (repeatedly) inspected. Summary of the invention

[0004] The purpose of the present invention is to provide a method for automatically identifying social scenes and dynamically generating inspection plans thereof in order to solve the above problems.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A method for automatically identifying social scenes and dynamically generating inspection plans thereof comprises the following steps:

[0007] S1. Receive open social event texts;

[0008] S2. Extract the scenes and events in each social event text respectively;

[0009] S3. matching the scene with the known scene in the scene cabin, and classifying the corresponding scene as a known scene or an unknown scene according to the matching result;

[0010] S4. Add known scenarios to the list to be processed and add unknown scenarios to the list of candidate scenarios;

[0011] S5. Push the scenes that meet the push conditions in the candidate scene list, or the scenes and corresponding events to the relevant departments so that the relevant departments can add the corresponding unknown scenes to the scene cabin;

[0012] Dynamically generate inspection lists based on the pending list, and dispatch inspection work to relevant departments based on the inspection lists and warning rules.

[0013] In the above-mentioned method for automatic identification of social scenes and dynamic generation of inspection plans, in step S1, the open social event text includes public opinion hot spots and public demands;

[0014] For the public opinion hot spots, social events are identified, and a web crawler is used to crawl news reports other than entertainment, sports and international sections from major news carriers to screen out news-related social events and then enter step S2;

[0015] For public appeals, consultation events are excluded based on the data words to screen out social events related to people's livelihood and then enter step S2.

[0016] In the above-mentioned method for automatic identification of social scenes and dynamic generation of inspection plans, in step S1, news-related social events are screened out from news carriers in the following manner:

[0017] S11. Locate the public opinion hotspot, accumulate the number of views, comments, likes, and reposts of the corresponding event in all news carriers, and determine whether the hotspot condition is met based on the number of views, comments, likes, and reposts. If so, the corresponding event is regarded as a public opinion hotspot;

[0018] S12. Exclude non-social events, extract the public opinion hotspot events locked in step S21, and use the trained BERT model to determine whether the corresponding public opinion hotspot is a non-social event of entertainment, sports and international to exclude non-social events and then filter out news-related social events.

[0019] In the above-mentioned method for automatic identification of social scenes and dynamic generation of inspection plans, step S2 specifically includes:

[0020] S21. Generate a tag sequence based on Baidu PaddleNLP's Chinese full-word sequence tagging tool, such as: T ner ={(word1, tag1), (word2, tag2),..., (word m , tag m )}, where tag i The value range is the entity tag of the Chinese whole word class, word i For tag i Corresponding to the word string in the input text;

[0021] S22. Merge sequence T based on the data structure bidirectional linked list ner The new annotation sequence T′ is obtained by combining adjacent strings with the same label, intransitive verbs and auxiliary words, adverbs and modifiers, scene words and directional words. ner ;

[0022] S23. Sequence T′ner Split into T word and T tag After two sequences, the multi-keyword matching algorithm WuManber is used to find the scene word label in T tag The position in the sequence, and according to the position, T word and T tag Divide into sets of clauses;

[0023] S24. Count the pattern strings of subject-verb-object, subject-verb and verb-object event extraction from the label result set of the Chinese full word class sequence tagging tool;

[0024] S25 uses WuManber algorithm to obtain tag Find the matching position of the event pattern string in the substring, and then find the matching position in the corresponding T word Search for subject-verb-object, subject-verb, and verb-object strings in substrings to extract scenes and events;

[0025] S26 When the event extraction template fails to extract the current sentence, the dependency parser is used to extract the subject, predicate and object triples of the text as a supplement to event extraction.

[0026] In the above-mentioned method for automatic identification of social scenes and dynamic generation of inspection plans, the matching in step S3 is a similarity matching. The subject-predicate-object, subject-predicate and verb-object word strings extracted in step S2 are first replaced with synonyms. For example, "illegal parking" and "parking vehicles not in accordance with regulations" are unified into "illegal parking" to facilitate accurate counting of the number of occurrences of scene events, and then similarity matching is performed with known scenes in the scene cabin.

[0027] In the above-mentioned method for automatic identification of social scenes and dynamic generation of inspection plans, step S3 specifically includes:

[0028] Classify the events belonging to the same scene into the corresponding scene to obtain a scene event set in the format of scene X [event 1, event 2, ..., event n];

[0029] Each scene X is matched with the known scenes in the scene cabin in turn by similarity, and the scene X is judged as a known scene or an unknown scene according to the maximum similarity value; if the scene X is judged as a known scene, the "similar scene name" attribute is added to the scene.

[0030] The specific method is: each scene X is matched with the known scenes [Y1, Y2, ..., Yn] in the scene cabin in turn by similarity:

[0031] First, use Tencent word vector to convert scene X and Yi, i∈[1,2,...,n] into word embedding form, and then use the cosine angle formula to calculate the similarity of X and Yi in turn, and get the array [sim(X,Y1),sim(X,Y2),...,sim(X,Yn)]. If max(sim(X,Yi)),i∈[1,2,...,n] is greater than the set threshold, scene X is judged as a known scene, otherwise it is an unknown scene. If it is judged as a known scene, the scene Yi corresponding to max(sim(X,Yi)) is added to the attribute field of scene X as the "similar scene name" attribute of scene X, so that there is no need to calculate in the subsequent dynamic generation of the checklist, and the repeated calculation is directly reduced. The corresponding checklist is called from the scene warehouse according to this field.

[0032] Step S4 specifically includes:

[0033] The known scene X and its event set are put into the to-be-processed list, and the unknown scene X and its event set are put into the candidate scene list.

[0034] In the above-mentioned method for automatic identification of social scenes and dynamic generation of inspection plans, step S5 specifically includes:

[0035] The number of events for each unknown scene X in the candidate scene list is accumulated. When the number of events n of the unknown scene X reaches the set value, the corresponding scene X or its event set is pushed to the relevant departments, and the relevant departments collaborate with field experts to add the new scene X to the scene cabin to make it a known scene.

[0036] In the above-mentioned method for automatically identifying social scenarios and dynamically generating inspection plans, the content of the added new scenario includes the scenario name and the inspection list of the corresponding scenario, and the mapping relationship between the newly added inspection items and the inspection questions in the inspection list. A inspection list usually has multiple inspection items, one inspection item can be mapped to multiple inspection questions, and one inspection question can also be mapped to multiple inspection items.

[0037] In the above-mentioned method for automatic identification of social scenes and dynamic generation of inspection plans, step S5 also includes: judging the novelty of each event in each unknown scene X, and judging whether the accumulated number of collaborative events and the novelty of an unknown scene X meet the push conditions.

[0038] In the above-mentioned method for automatic identification of social scenarios and dynamic generation of inspection plans, in step S5, the method for dynamic generation of inspection lists includes:

[0039] S51. Match the scene names of all known scenes X in the list to be processed from the scene cabin;

[0040] S52. Retrieve the corresponding checklist from the scene cabin according to the scene name, and set the scores of all check items in the checklist to m;

[0041] S53. Identify and check the problems for each event of scene X;

[0042] S54. For each identified inspection problem, according to the inspection problem and inspection item mapping table, the corresponding inspection item in the inspection list is accumulated with the number of occurrences of the mapped inspection problem;

[0043] S55. Arrange the check items in the checklist in reverse order according to the scores to form a dynamic checklist.

[0044] The advantages of the present invention are:

[0045] This solution is based on the scenes and event elements in the field of social governance, collects events through multiple channels and methods, pre-processes the events and screens out social events, and reflects the unknown scenes with high weights to the relevant departments through a series of algorithms, so that the relevant departments can add new scenes to social events in a timely manner and compile inspection lists for new scenes, thereby ensuring the long-term stable and orderly development of society. The generation of dynamic inspection plans for known scenes can realize the key inspection reminders of prominent problems in the scenes, and weaken the inspection items that have been qualified for a long time, effectively practicing the convenient purpose of "comprehensive inspection once". BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a schematic diagram of the process of generating a scene event set based on open data in the method for automatic identification of social scenes and dynamic generation of inspection plans thereof of the present invention;

[0047] Figure 2 It is a flow chart of unknown scene recognition in the method for automatic recognition of social scenes and dynamic generation of inspection plans of the present invention;

[0048] Figure 3 This is a flow chart of dynamic generation of checklists in the method for automatic identification of social scenarios and dynamic generation of inspection plans of the present invention. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0050] The method for automatically identifying social scenes and dynamically generating inspection plans provided in this embodiment mainly includes the following steps:

[0051] 1. Collect open social events, such as Figure 1As shown in the first and second columns, the open social event data collection methods in this scheme are divided into the following two types: one is news events, which are crawled from major news carriers using web crawlers, including news portals, Weibo, etc. News portals mainly include headlines regional event rankings, local news hotspot website forums, Baidu News, The Paper, etc. Weibo mainly includes Sina Weibo, etc.; the second is livelihood events. The news event data crawled by news websites need to be identified as social events to exclude entertainment, sports, international and other events to obtain news social events; livelihood events are mainly consultation and complaint events. After excluding consultation events, the remaining defaults are livelihood social events, which can be used directly. According to the data table fields, after excluding consultation events, the remaining defaults are livelihood social events.

[0052] Specifically, this embodiment uses the trained BERT pre-training model to screen social events in media reports. The BERT pre-training model is a bidirectional encoder language representation model based on the Transformer framework released by Google, which is widely used in natural language processing tasks. The specific method is as follows:

[0053] The calculation of public opinion hotspots accumulates the number of views, comments, likes, and reposts of the corresponding events in all news carriers, and determines whether the hotspot conditions are met based on the number of views, comments, likes, and reposts. If so, the corresponding event will be regarded as a public opinion hotspot. The rules for whether the hotspot conditions are met are determined by technical personnel based on actual conditions. For example, all events can be set with a unified hotspot judgment standard, or the events can be divided into several categories according to the titles of the reported events. Each category of events has its own hotspot judgment standard. For example, the hotspot standard for "transportation" related events is more than 500,000 views or more than 10,000 comments, and the hotspot standard for "medical" related events is more than 1 million views or more than 20,000 comments or more than 20,000 reposts, and so on.

[0054] Remove all the content other than text information from the public opinion hotspot text to form a training corpus S, and manually annotate the prediction variables of the training corpus. Entertainment, games, sports, international news reports are used as negative samples, and y i =-1 means the text is a non-social event text, y i =+1 indicates news-related social events;

[0055] Divide the corpus S into S according to 8:2 train and S test , for S train and S test Each sentence text in is encoded by the BertTokenizer tool of the bert model, converting the text sequence into a word-based vector representation V s ;

[0056] Annotate the corpus in vector form and As the input of the BERT pre-trained model, it is sent to the BERT model for binary classification. Here y i ∈{+1,-1}, and i∈(1,2,...,m)∪(1,2,...,n).

[0057] This embodiment uses the binary classification algorithm of the BERT pre-trained model to filter social events and store them in the database for use in the next step of scene event extraction, excluding entertainment, sports, international and other events to obtain news-related social events, which is conducive to the next step of event analysis.

[0058] 2. Scene and event extraction, such as Figure 1 As shown in the third column, the screened open social event texts are segmented into sentences according to the place and organization labels annotated by Baidu PaddleNLP to extract scenes and events.

[0059] PaddleNLP is a collection of Baidu's self-developed algorithms and community open source models in the field of natural language processing. Its functions include Chinese full-word entity recognition, sentiment analysis, etc. Specifically, the above specific method of sentence segmentation based on Baidu PaddleNLP's annotated place and organization tags is as follows:

[0060] Generate the annotation sequence T based on Baidu PaddleNLP's Chinese full-word sequence annotation tool ner ={(word1, tag1), (word2, tag2),..., (word m , tag m )}, where tag i The value range is 66 entity tags of the Chinese word class, word i For tag i Corresponding to the word string in the input text, i = 1, 2, ..., m;

[0061] Merge sequence T based on double linked list data structure ner The adjacent strings of the same label, intransitive verbs and auxiliary words, adverbs and modifiers, scene words and directional words are obtained by ner ={(word1, tag1), (word2, tag2),..., (word n , tag n )}, used to reduce the size of the tag matching pattern string library;

[0062] The sequence T′ ner Split into T word ={word1,word2,...,wordn} and T tag ={tag1, tag2, ..., tag n} two sequences, scene word labels include places: transportation places, scenic spots, real estate, world regions, accommodation places, catering places, etc., and organizations: state organs, enterprises and institutions, educational organizations, resident service organizations, medical and health institutions, sports organizations, financial organizations, etc. The scene word labels are used as query items of the keyword matching algorithm WuManber, and two hash tables SHIFT and HASH are constructed to search for all matching items in T tag The position coordinates in the sequence, according to the position coordinates, T word and T tag Divide into subsequence sets respectively: and in

[0063] Learn the label pattern strings of subject-verb-object, subject-verb-verb, and verb-object event extraction from the label result set of the Chinese all-word sequence tagging tool, such as "object class modifier scene event", "object class scene event object class", "object class sensory feature modifier", "scene event", "object class scene event", etc.;

[0064] The event extraction label pattern string is used as the query item of WuManber algorithm (multi-pattern matching algorithm), and the matched event pattern string is extracted from each clause. The position coordinates in , and according to the position coordinates from Find the corresponding subject-verb-object, subject-verb, and verb-object strings in the sequence to extract scenes and events;

[0065] Taking into account the limited nature of the event extraction template definition, when the event extraction template fails to extract the current sentence, a dependency syntactic analyzer (Spacy) is introduced as a supplement to the extraction task. Its function is to extract the subject, predicate, and object of the current sentence as event triples by analyzing the dependency relationship between words in the sentence.

[0066] 3. Automatic generation of unknown scenarios. Scenarios are divided into known scenarios and unknown scenarios. Known scenarios are pre-defined by relevant departments based on years of work experience, such as "swimming pool", "restaurant" and "supermarket", and different inspection items are set for different scenarios. Unknown scenarios are scenarios outside the scope of known scenarios. Figure 1As shown in the fourth column, this solution organizes the extracted event results according to the scene, and the output format is: scene X [event 1, event 2, ..., event n], X represents the corresponding scene name, event i: = <subject, predicate, object> triple. In the process of incorporating events belonging to the same scene X into the scene, it is preferred to define a synonym word list, use the prefix tree Trie tree algorithm to index the synonym word list, and replace the extracted subject-predicate-object, subject-predicate and verb-object word strings with synonyms to standardize the event word strings; establish an irrelevant word filter table based on the word vector word2vec+kmeans word clustering algorithm to filter meaningless event word strings. As shown Figure 2 As shown in the figure, for each scene X, the similarity values ​​of scene X and each known scene Yi,i∈[1,2,...,n] in the scene cabin are calculated in sequence using Tencent word vector and cosine angle formula to obtain the array [sim(X,Y1),sim(X,Y2),...,sim(X,Yn)], and max(sim(X,Yi)) is compared with the set threshold. If the threshold is met, scene X is determined as a known scene and included in the list to be processed; if the threshold is not met, it is determined as an unknown scene and included in the candidate scene list. At the same time, for scene X determined as a known scene, the scene Yi corresponding to max(sim(X,Yi)) is added to the attribute field of scene X as the "similar scene name" attribute of scene X.

[0067] The unknown scenes in the candidate scene list that meet the push conditions or their n events are pushed to the relevant departments for manual confirmation and added to the system's scene cabin, and the cycle is repeated to expand the categories of known scenes. After the relevant departments and field experts review and confirm the N unknown scenes and add them to the "Comprehensive Check Once" scene cabin, the scene numbers in the scene cabin are updated to 60+N, thereby realizing the dynamic update function of the scene, providing convenient and feasible technical support for the "Comprehensive Check Once" to always be updated with the development of the times. When adding new scenes, the relevant departments need to organize field experts to compile a checklist for the corresponding new scenes. The checklist includes several inspection items and inspection departments, and a knowledge base such as the mapping relationship between inspection items and inspection questions needs to be compiled.

[0068] Furthermore, when the system is put into use, events may or may not be classified. When events are classified, the same events are grouped together by extracting parts of speech such as subject, predicate, and object, replacing synonyms, matching keywords, etc., and the scene event set of scene X[event 1, event 2, ..., event n] is replaced with scene X[{event 1, frequency 1}, {event 2, frequency 2}, ..., {event n, frequency n}].

[0069] Specifically, the push condition here can be the cumulative number of events in scene X. For example, when the n value of event n in scene X reaches a set value, the corresponding unknown scene is considered to meet the push condition. The push condition can also refer to other indicators, such as the event novelty indicator in scene X. If there is an event i in scene X with a high degree of novelty, such as the first occurrence, the corresponding unknown scene is considered to meet the push condition. Or various indicators are calculated according to weights. For example, the weight of each event number is 1. When an event appears for the first time, its weight is reset to 5. When the weight value of an unknown scene reaches a certain value, the corresponding unknown scene is considered to meet the push condition.

[0070] 4. Dynamic generation of known scenario checklists, such as Figure 3 As shown in the figure, the premise for the dynamic generation of the known scenario checklist is that the checklists for known scenarios already exist and have been confirmed by experts in the field of social governance, and the mapping relationship between the check items and the check questions in the checklist has been established. This solution uses a method based on a combination of keyword table and multi-label classification technology to identify and process the inspection problems in the text. The concept of inspection problems here refers to the event concept in CJ / T 214-2007 "Classification, Coding and Data Requirements for Management Components and Events of Urban Municipal Integrated Supervision Information System": phenomena and behaviors that affect or damage the urban appearance and environmental order due to human or natural factors, and need to be handled and restored to normal by professional urban management departments, such as fume nuisance, slag transportation, construction noise, etc.

[0071] For each scene X in the pending list, according to the "similar scene name" attribute, the corresponding checklist is retrieved from the scene cabin, and the scores of all check items in the checklist are set to 1, or other values, such as 2, 3..., and then a method based on a combination of keyword table and multi-label classification technology is used to identify and process inspection problems in the text. For each identified inspection problem, according to the inspection problem and inspection item mapping table, the corresponding inspection item is accumulated with the number of occurrences of the inspection problem, and finally the inspection items of the checklist are arranged in reverse order according to the score, so as to form a dynamic inspection list at that time.

[0072] The identification of inspection problems can also be implemented using the BERT pre-trained model:

[0073] S721 Establish an inspection problem classification system for the field of comprehensive social governance based on the inspection problem categories defined in CJ / T 214-2007 and the public appeal text clustering results based on the canopy-kmeans algorithm;

[0074] S722 Based on the inspection question classification system, manually annotated corpus is used to establish training and test corpus for multi-label classifiers;

[0075] S723 encodes each event content of the training and test corpora through the BERT model, converts it into a word-based vector form, and converts the predicted label into a one-hot vector form;

[0076] The vector corpus of S724 training and testing is used as the input of the BERT pre-training model and is sent to the BERT pre-training model for multi-label classification.

[0077] 5. Assign inspection work. The inspection list triggers the inspection plan according to the early warning rules. For example, the inspection plan is triggered when the cumulative value of each inspection item in the inspection list reaches the set value, or the cumulative value of a single inspection item reaches the set value.

[0078] This solution first makes the data source open source, not only obtaining service hotline data, but also crawling open source news data. The service hotline is an important channel for the masses to express their demands, put forward opinions and suggestions, and make complaints and reports. It is an important way to understand social dynamics, supervise functional departments and their staff, protect public interests, and ease conflicts between cadres and the masses. With the use of the service platform year by year, a large amount of public demand data has been accumulated. These data come from the grassroots, have the characteristics of fresh data and "down-to-earth", and are a high-quality source of data for the "comprehensive check once" intelligent system to process data. In the era of information flood, news portals, Sina Weibo and other news carriers are the main sources of information for people. The browsing, commenting, liking and forwarding functions provided by news portals enable people to quickly feedback the received information, thereby promoting the large-scale dissemination of information on the Internet and forming public opinion events; Sina Weibo's huge user base makes Weibo the core position for the generation, fermentation, evolution and dissemination of sudden public opinion events and an important source of open source intelligence. Public opinion hotspots reflect social dynamics and people's livelihood wishes. By exploring the scenes and event elements of public opinion hotspot events, relevant departments can easily discover and inspect new scenes and new problems as early as possible, and make plans in advance for compiling a "comprehensive inspection" new scene inspection list.

[0079] Secondly, this solution will pre-process events and screen out social events. Through a series of algorithms, unknown scenarios that meet certain conditions will be reported to relevant departments, making it convenient for relevant departments to add new scenarios for social events and compile checklists for new scenarios in a timely manner. It will provide technical support and data support for relevant departments to expand the known scenarios of the comprehensive inspection system, thereby safeguarding the long-term stable and orderly development of society.

[0080] In addition, this solution intelligently and dynamically sorts the inspection checklist for each scenario, can provide reminders of key inspection points based on prominent issues in the scenario in advance, and de-emphasize inspection items that have been qualified for a long time, effectively implementing the convenience purpose of "comprehensive inspection once".

[0081] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

[0082] Although this article uses more terms such as social events, news events, livelihood events, scenes, and events, it does not exclude the possibility of using other terms. These terms are used only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional restrictions is contrary to the spirit of the present invention.

Claims

1. A method for automatic identification of social scenes and dynamic generation of inspection plans, characterized in that: The following steps are involved: S1. Receive open social event texts; S2. Extract the scenes and events in each social event text respectively; S3. matching the scene with the known scene in the scene cabin, and classifying the corresponding scene as a known scene or an unknown scene according to the matching result; S4. Add known scenarios to the list to be processed and add unknown scenarios to the list of candidate scenarios; S5. Push the scenes that meet the push conditions in the candidate scene list, or the scenes and corresponding events to the relevant departments so that the relevant departments can add the corresponding unknown scenes to the scene cabin; Dynamically generate inspection lists based on the pending list, and dispatch inspection work to relevant departments based on the inspection list and warning rules; Step S2 specifically includes: S21. Generate a tag sequence based on Baidu PaddleNLP's Chinese full-word sequence tagging tool, as follows: ,in The value range of is the entity tag of the Chinese whole word class, for Corresponding to the word string in the input text; S22. Merge sequence based on double linked list data structure The adjacent strings of the same label, intransitive verbs and auxiliary words, adverbs and modifiers, scene words and directional words in the text get new annotation sequences. ; S23. Sequence Split into and After two sequences, the multi-keyword matching algorithm WuManber is used to find the scene word label in The position in the sequence, and according to the position and Divide into sets of clauses; S24. Count the pattern strings of subject-verb-object, subject-verb and verb-object event extraction from the label result set of the Chinese full word class sequence tagging tool; S25 uses WuManber algorithm to Find the matching position of the event pattern string in the substring, and then find the matching position in the corresponding Search for subject-verb-object, subject-verb, and verb-object strings in substrings to extract scenes and events; S26 When the event extraction template fails to extract the current sentence, the dependency parser is used to extract the subject, predicate and object triples of the text as a supplement to event extraction.

2. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 1 is characterized in that: In step S1, the open social event text includes public opinion hot spots and public demands; For the public opinion hot spots, social events are identified, and a web crawler is used to crawl news reports other than entertainment, sports and international sections from major news carriers to screen out news-related social events and then enter step S2; For public appeals, consultation events are excluded based on the data words to screen out social events related to people's livelihood and then enter step S2.

3. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 2 is characterized in that: In step S1, news-related social events are screened out from news carriers in the following manner: S11. Locate the public opinion hotspot, accumulate the number of views, comments, likes, and reposts of the corresponding event in all news carriers, and determine whether the hotspot condition is met based on the number of views, comments, likes, and reposts. If so, the corresponding event is regarded as a public opinion hotspot; S12. Exclude non-social events, extract the public opinion hotspot events locked in step S21, and use the trained BERT model to determine whether the corresponding public opinion hotspot is a non-social event of entertainment, sports and international to screen out news-related social events.

4. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 3 is characterized in that: The matching in step S3 is a similarity matching, and firstly the subject-predicate-object, subject-predicate and verb-object word strings extracted in step S2 are subjected to synonym replacement calculation to standardize the word strings, and then similarity matching is performed with the known scenes in the scene cabin.

5. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 1 is characterized in that: Step S3 specifically includes: Classify the events belonging to the same scene into the corresponding scene to obtain a scene event set in the format of scene X [event 1, event 2, ..., event n]; Each scene X is matched with the known scenes in the scene chamber in turn by similarity, and the scene X is judged as a known scene or an unknown scene according to the maximum similarity value; Step S4 specifically includes: The known scene X and its event set are put into the to-be-processed list, and the unknown scene X and its event set are put into the candidate scene list.

6. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 5 is characterized in that: Step S5 specifically includes: The number of events for each unknown scene X in the candidate scene list is accumulated. When the number of events n of the unknown scene X reaches the set value, the corresponding scene X or its event set is pushed to the relevant departments, and the relevant departments collaborate with domain experts to add the new scene X to the scene cabin to make it a known scene.

7. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 6 is characterized in that: The content of the newly added scenario includes the scenario name and the checklist of the corresponding scenario, and the mapping relationship between the newly added check items and the check questions in the checklist.

8. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 6 is characterized in that: Step S5 also includes: performing novelty judgment on each event in each unknown scene X, and judging whether the accumulated number of collaborative events and the novelty of an unknown scene X meet the push conditions.

9. The method for automatic identification of social scenes and dynamic generation of inspection plans according to claim 5 is characterized in that: In step S5, the method for dynamically generating a checklist includes: S51. Match the scene names of all known scenes X in the list to be processed from the scene cabin; S52. Retrieve the corresponding checklist from the scene cabin according to the scene name, and set the scores of all check items in the checklist to m; S53. Identify and check the problems for each event of scene X; S54. For each inspection problem identified, according to the inspection problem and inspection item mapping table, the corresponding inspection item is accumulated to the number of occurrences of the mapped inspection problem; S55. Arrange the check items in the checklist in reverse order according to the scores to form a dynamic checklist.