Event allocation method and device, equipment and storage medium

By using a model trained based on event extended data for event classification and intelligent allocation, the problems of low event allocation processing efficiency and poor adaptability in the existing technology are solved, and efficient event allocation processing and the ability to adapt to different application scenarios are achieved. .

CN118568267AInactive Publication Date: 2024-08-30CETC NEW SMART CITY RES INST CO LTD

Patent Information

Application Number
CN202411061866.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing event distribution processing has problems of low efficiency and poor adaptability to application scenarios, resulting in low efficiency and omissions or errors in manual processing.

Method used

Through the model trained based on event extended data, the target event text is obtained and the event is classified. The event feature list is used to determine the department to which the event belongs. Intelligent type matching and automatic allocation are realized to improve the model's adaptability and processing efficiency for different application scenarios.

Benefits of technology

It improves the efficiency and adaptability of event distribution processing, ensures the effectiveness of model functions in cold start state, and reduces manual errors and omissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568267A
    Figure CN118568267A
Patent Text Reader

Abstract

The invention is suitable for the field of file information processing, and provides an event allocation method, device and equipment and a storage medium, and the method comprises the steps: obtaining a target event text which corresponds to a to-be-allocated event; inputting the target event text into a first model obtained by training based on event extension data to obtain an event classification result output by the first model; determining a target event affiliation department corresponding to the target event text from the event feature list based on the event classification result; and based on the department to which the target event belongs, performing event allocation on the to-be-allocated event. According to the scheme, the suitability in different practical application scenes is improved, the event processing efficiency is improved, and the events are effectively allocated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information processing, and in particular, relates to an event distribution method, device, equipment and storage medium. Background Art

[0002] Timely allocating complaints, reports or suggestions to the corresponding handling departments for incident handling is of great significance for improving department efficiency, promoting problem solving, enhancing trust, supervising department behavior and promoting policy improvements.

[0003] However, event data has gradually become large and complex, and the application scenarios involved in the events have also changed a lot, requiring a lot of processing time. Faced with huge information flows, manual processing is prone to omissions or errors due to information overload. When human resources are limited, event distribution processing is inefficient, and distribution processing is difficult to meet the event distribution needs in different application scenarios.

[0004] Therefore, the current event distribution processing has problems such as low efficiency and poor adaptability to application scenarios. Summary of the invention

[0005] The embodiments of the present application provide an event distribution method, device, equipment and storage medium to solve the problems of low efficiency and poor adaptability to application scenarios in current event distribution processing.

[0006] A first aspect of an embodiment of the present application provides an event allocation method, including: Acquire a target event text, wherein the target event text corresponds to the event to be allocated; Input the target event text into the first model to obtain the event classification result output by the first model; the first model is trained based on event extension data, and the event extension data includes event simulation data generated by simulating event features in the event feature list; the event features include the department to which the event belongs and the type of event; Based on the event classification result, determining the target event belonging department corresponding to the target event text from the event feature list; Based on the department to which the target event belongs, the event to be allocated is allocated.

[0007] A second aspect of an embodiment of the present application provides an event distribution device, including: An acquisition module, used for acquiring a target event text, wherein the target event text corresponds to the event to be allocated; A processing module, used for inputting the target event text into a first model to obtain an event classification result output by the first model; the first model is trained based on event extension data, and the event extension data includes event simulation data generated by simulating event features in an event feature list; the event features include the department to which the event belongs and the type to which the event belongs; A determination module, configured to determine, based on the event classification result, from the event feature list, the target event belonging department corresponding to the target event text; The distribution module is used to distribute the events to be distributed based on the departments to which the target events belong.

[0008] A third aspect of an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0009] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] The fifth aspect of the present application provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code. When the computer-readable code is executed in an electronic device, the processor in the electronic device executes the steps in the method described in the first aspect above.

[0011] The above scheme in the embodiment of the present application realizes intelligent type matching and classification of the events to be distributed based on the first model obtained by training using event extension data to obtain the type of event, wherein the event extension data includes event simulation data generated by simulating the event features in the event feature list, so as to expand the model training samples, so that the trained first model can learn the event features in a specific event processing scenario, and the feature relationship between the event features, and finally match the corresponding responsibility attribution based on the record content in the event feature list to automatically distribute to the corresponding event attribution department, so that when the first model is applied to a specific event distribution system, it can quickly implement the distribution processing of various types of events in a specific event scenario, improve the adaptability of the model to different actual application scenarios, and at the same time ensure the functional effectiveness of the model in the cold start state, and the efficiency of event distribution processing is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings: Figure 1 This is the process of the event allocation method of some embodiments of the present application Figure 1 ; Figure 2 is a schematic diagram of the structure of the Transformer encoder network in some embodiments of the present application; Figure 3 This is the process of the event allocation method of some embodiments of the present application Figure 2 ; Figure 4 is an example diagram of an event allocation processing flow in some embodiments of the present application; Figure 5 is a structural diagram of an event distribution device in some embodiments of the present application; Figure 6 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0013] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0014] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0015] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0016] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0017] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0018] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0019] The present application embodiment proposes an event allocation method, which can be applied to an event allocation system. In some embodiments, combined with Figure 1 As shown, the event dispatching methods include: Step 101, obtaining target event text.

[0020] The target event text corresponds to the event to be allocated, which may be a livelihood event to be processed, or an internal company event to be processed.

[0021] Citizens can edit event texts to report, consult, make suggestions, and complain about things happening around them. After obtaining this information, the event distribution system needs to distribute the events to the relevant responsible departments to achieve effective and timely handling of the events.

[0022] Optionally, the event distribution system supports obtaining initial event texts from multiple data sources to form an event text collection or event text pool. Since the same event may be reported from different data sources at the same time when an event is reported, there will be duplicate event data in the event text collection. In this case, data preprocessing can be performed to filter, merge, remove duplicates, etc. to obtain valid target event texts.

[0023] Correspondingly, in one embodiment, step 101 of obtaining the target event text includes: Obtain initial event texts from different channels; after deduplication of the initial event texts, obtain the target event texts.

[0024] The preprocessing of the initial event text may include: Data cleaning: Check the initial event text in the database form to ensure data consistency in the initial event text, and handle invalid values ​​and missing values. For example, for missing values, you can perform data processing and fill them in (such as using the mean, median, mode, etc.), or perform prediction and filling based on the algorithm, or directly delete the event text with missing values.

[0025] Data analysis: Through data analysis, the data range, central trend, degree of dispersion, and possible outliers involved in the initial event text in the database form can be determined. By viewing the data distribution, it can provide a basis and support for subsequent data processing, modeling, and analysis, ensuring the accuracy and reliability of the analysis of the event text.

[0026] Data merging and processing: When storing event texts, a corresponding directory system can be established in the storage system. By organizing the data directory, a merging strategy can be adopted for similar event text categories, and event texts with common characteristics or similar content can be grouped into the same category. By merging similar categories, a clear and orderly directory structure is established so that each event text can only belong to one category, thereby achieving deduplication of event texts, avoiding data redundancy and overlap, and improving the efficiency of data management. At the same time, it is helpful for the subsequent analysis and application of event texts.

[0027] Step 102: input the target event text into the first model to obtain the event classification result output by the first model.

[0028] Among them, the first model is trained based on event extension data, and the event extension data includes event simulation data generated by simulating event features in the event feature list, and the event features include the department to which the event belongs and the type of event.

[0029] Different events have corresponding event types, and different event types can be classified into corresponding departments for processing.

[0030] The event attribution department is specifically a department with event handling authority. When handling an event to be allocated, the corresponding event text needs to be allocated to the department responsible for handling the event for processing.

[0031] The event extension data is specifically data formed by expanding the number of event samples for model training. The first model is trained by the event extension data, so that the first model has good model performance and ensures the functional effectiveness of the model in the cold start state.

[0032] The event extension data includes event simulation data, which is event data generated by simulation, that is, event data that does not actually occur, so as to expand the number of event samples and increase the number of training samples of the model.

[0033] The event simulation data is generated by simulation based on the event features in the event feature list. The event feature list records the event features related to the actual distribution events that the event distribution system needs to handle. The event simulation data is generated based on these event features in the list to expand the model training samples, so that the first model can learn the event features in a specific event scenario and the feature relationship between the event features. When the first model is applied to a specific event distribution system, it can also quickly handle the distribution of various types of events in a specific event scenario, thereby improving the adaptability of the model to different actual application scenarios.

[0034] Specifically, the first model here is a classification model, which is used to classify the input event text and determine the corresponding event type. The event classification result is the event type output by the first model.

[0035] Before inputting the event text into the first model, you can also choose to perform word vectorization on the event text. Specifically, each word in the text can be converted into a vector of a fixed dimension. These vectors are used to capture the semantic information of the words in the text, so that the first model can accurately implement separate processing.

[0036] During the application process, when the cold start occurs with insufficient data, the model will be underfitted and the classification accuracy will be low. The embodiment of the present application adopts a first model trained with data samples having the above characteristics to achieve functional enhancement of event distribution processing and ensure the event classification processing accuracy of the model in the cold start state.

[0037] Step 103: Based on the event classification result, determine the target event belonging department corresponding to the target event text from the event feature list.

[0038] The event feature list includes multiple feature entries. Optionally, the event to be allocated has an event feature corresponding to each feature entry.

[0039] In an example, the event feature list includes feature items such as event type, feedback action type, event case description, and event-attribution department.

[0040] Optionally, a specific event feature list is shown in the following table:

[0041] Step 104 , based on the department to which the target event belongs, the event to be allocated is allocated.

[0042] In an embodiment of the present application, based on a first model trained using event extension data, intelligent type matching and division of events to be distributed is implemented to obtain the type to which the events belong, wherein the event extension data includes event simulation data generated by simulating event features in an event feature list, thereby expanding the model training samples, so that the trained first model can learn event features in specific event processing scenarios, as well as feature relationships between event features, and ultimately match corresponding responsibilities based on the record content in the event feature list and automatically distribute them to corresponding event attribution departments, so that when the first model is applied to a specific event distribution system, it can quickly implement distribution processing of various types of events in specific event scenarios, thereby improving the adaptability of the model to different actual application scenarios, while ensuring the functional effectiveness of the model in a cold start state, and improving the efficiency of event distribution processing.

[0043] In some optional implementations, model training is required before the first model is used.

[0044] In this process, before step 102 inputs the target event text into the first model and obtains the event classification result output by the first model, the process also includes: Obtain a pre-trained first model and real event data; generate event simulation data based on the event features in the event feature list and the second model; construct a model training sample that includes the event simulation data and the real event data; and optimize the pre-trained first model based on the model training sample.

[0045] Here, the second model may be a large language model, and the dialogue function of the large language model may be used to batch generate high-quality event simulation data that meets the conditions.

[0046] The first model may be a pre-trained model, for example, a pre-trained language model BERT (Bidirectional Encoder Representations from Transformers) model.

[0047] Among them, BERT is a pre-trained language model that can learn the structure and semantic information of a language by training on a large amount of text data. BERT-Chinese is a Chinese version of BERT, specifically designed for processing Chinese text. Although the BERT-Chinese model performs well in understanding the semantics of Chinese text, its understanding ability and accuracy are limited by its training data and algorithm.

[0048] In practical applications, it is necessary to fine-tune and optimize the model based on specific tasks and data conditions to adapt to specific text classification tasks and achieve better performance.

[0049] Therefore, the embodiment of the present application adopts the pre-trained language model BERT-Chinese as the base model, and constructs model training samples based on real data of some events and high-quality event simulation data generated by simulating a large language model. By fine-tuning and optimizing the pre-trained first model, high-precision classification and allocation of public opinion events to be allocated can be implemented.

[0050] Specifically, in the process of optimizing the pre-trained first model based on the model training sample, the model training sample is obtained based on the combined event simulation data and the real event data, and then the pre-trained BERT model is loaded and the appropriate classifier layer is added. Next, the model training sample is converted into an input format acceptable to the BERT model, and the model is trained using the prepared training data.

[0051] Model training samples can be divided into training sets and test sets. During the model optimization training process, the loss function value of each round is recorded to facilitate the observation of the model training progress. In addition, the accuracy, F1 value, confusion matrix and AUC-ROC (Area Under Curve of Receiver Operating Characteristic) and other indicators on the training set and test set are also calculated to evaluate the performance of the model.

[0052] In deep learning models, training optimization algorithms are a very important step. When optimizing the BERT model, it is necessary to select a suitable optimization algorithm to improve model performance and training speed, design a suitable learning rate strategy to dynamically adjust the learning rate during training, implement parallel training of the model to speed up training, and perform regularization during training to prevent overfitting.

[0053] After model training and optimization are completed, the BERT model is deployed to the production environment for inference. Model deployment can be done in a variety of ways, including using local servers, cloud services, edge devices, etc. During the deployment process, the trained model needs to be exported to a usable ONNX (Open Neural Network Exchange) format, and then the model is used by calling the model's HTTP (Hypertext Transfer Protocol) interface.

[0054] Finally, the model can be tested online to ensure its accuracy and data generalization capabilities.

[0055] Specifically, after iteratively optimizing the model, we test whether the accuracy has improved in the second and third classifications by repeatedly inputting misclassified events and correcting the classifications. We also test whether events can still be timely and accurately classified into the correct categories after the classification system is adjusted by adjusting the event classification system.

[0056] In an exemplary model's underlying Transformer encoder network structure, combined with Figure 2 As shown, the network model can be set up with a stacked self-attention network structure, where each layer of the network consists of multi-head self-attention and feedforward neural networks.

[0057] The self-attention function can be described as mapping a query and a set of key-value pairs to outputs, where the query, key, value, and output are all vectors. , each object in the sequence are linearly encoded into a vector : , in Represents the added learnable position embedding vector to encode the spatiotemporal position of each object. The Transformer model does not involve any convolutional and recurrent neural network modules, and the learnable position embedding vector can retain the position information of the objects in the sequence.

[0058] At each layer l, for each object in the sequence, the encoding from the previous layer is used to compute a set of query / key / value vectors:

[0059] Where LN stands for LayerNorm, i.e. layer normalization. is the index of multiple self-attention heads, and A represents the total number of self-attention heads. The dimension of each self-attention head is set to The multi-head self-attention mechanism aims to extract richer information from multiple aspects and then superimpose them.

[0060] Output for each object is the weighted sum of the value vectors of all objects, where the weight assigned to each value vector is Calculated from the query vector and all key vectors of the object:

[0061] in , SoftMax is the activation function.

[0062] The outputs of multiple self-attention heads are then concatenated and passed to the feed-forward layer to summarize all the information:

[0063] in W o It is a fully connected neural network that maps the output dimension to D. MLP (Multi-LayerPerceptron) is a feed-forward layer, which includes two fully connected layers and a GELU (Gaussian Error Linear Unit) activation function. + represents the residual connection.

[0064] By optimizing the pre-trained first model, the pre-trained model can be fine-tuned, evaluated, tuned and deployed to improve the model classification effect of the pre-trained model in the actual application environment.

[0065] The above process generates event simulation data based on the event features in the event feature list and the second model, and combines it with the real data of the event to effectively expand the number of model training samples and implement further model fine-tuning of the pre-trained model. It can effectively improve the data classification and processing effect of the first model after training and optimization in the cold start stage when the project is just starting and the amount of data is insufficient, so as to achieve high-precision classification and allocation of the events to be processed and alleviate the problems of under-fitting of the model and low accuracy.

[0066] In one embodiment, the event feature list includes multiple feature entries.

[0067] Therefore, in the process of generating event simulation data based on the event features in the event feature list and the second model, the following steps are specifically included: The event features of different types of events under each specific feature entry are read from the event feature list, the event features are filled into a pre-built prompt word generation template, prompt words corresponding to each type of event are generated, the prompt words are input into the second model, and a set number of event simulation data output by the second model are obtained.

[0068] The set number of items is, for example, 1000, 2000, etc. The specific number can be adjusted according to actual needs.

[0069] This process is implemented based on event feature list and prompt word engineering.

[0070] The event feature list can guide the events waiting to be processed to be allocated to the corresponding processing departments, and can also be used to generate prompt words to instruct the large language model to simulate and generate event simulation data.

[0071] During the implementation process, it is necessary to first load the large language model, configure and debug the hyperparameters in the model, and then construct a separate data traversal and transfer function. Based on this function, the event features under each specific feature item in the event feature list are traversed to generate prompt words, and the prompt words are input into the large language model to generate event simulation data.

[0072] When generating event simulation data, public opinion event simulation can be performed for various specific types of events under the event type in the event feature list.

[0073] For example, in some embodiments of the present application, more than 140,000 public opinion event data are simulated for more than 1,400 event types. Compared with the event distribution system in which there are only more than 1,000 real event data at the beginning of the cold start phase of the model, the simulated event data generated by the simulation greatly increases the overall data volume. Using the event simulation data together with the real event data as model training samples greatly expands the overall number of model training samples, which can ensure that the model has a relatively good model classification effect and accuracy during cold start, and the types of classifiable event types are also greatly expanded and improved.

[0074] In order to ensure the generation of appropriate event simulation data, it is necessary to construct a reasonable and accurate prompt word template, and then generate corresponding prompt words, which are input into the interface batch of the large language model to generate event simulation data that meets the requirements.

[0075] In an optional implementation, before reading the event features of different types of events under each specific feature entry from the event feature list, the method further includes: Construct a common language, and based on the semantic relationship information between the common language and each specific feature item, construct a keyword filling position corresponding to the specific feature item in the common language; obtain a prompt word generation template including the common language and the keyword filling position.

[0076] The specific feature items here are specifically all feature items or part of feature items in the event feature list, which are not specifically limited here and can be adjusted according to actual needs.

[0077] The common language is used as input in the model, so that the model generates event simulation data whose content is compatible with the event features in the event feature list according to the instructions in the common language.

[0078] The prompt word generation template is, for example: Please play the role of a citizen and use the tone of a citizen to [feedback action type] a public opinion event about [event type]. Please describe the specific content, for example: [event case description]. The word count must be within 100 words.

[0079] Among them, [Feedback Action Type], [Event Type], and [Event Case Description] in the prompt word generation template are the keyword filling positions constructed in the prompt word template. These keyword filling positions specifically correspond to the specific feature items in the event feature list. Correspondingly, the rest of the prompt word generation template is the constructed common language.

[0080] The following takes ChatGLM-6B-128K as an example, and combines the event type "traffic light damage" in the event feature list in the above embodiment to explain how to generate prompt words based on the prompt word generation template, and then generate a plurality of event simulation data: During the generation process, the configured and debugged ChatGLM-6B-128K large language model is loaded, and the event feature "traffic light damage" under the item [Event Type], the event feature "Report" under the item [Feedback Action Type], and the event feature "At intersection A, the traffic light flashes frequently / is not on" under the item [Event Case Description] in the event feature list are traversed. These contents are filled into the corresponding feature content according to the keyword filling position in the prompt word template, and the generated prompt word is: "Please play the role of a citizen and report a public opinion event about the damage of the traffic light in the tone of a citizen. Please describe the specific content, for example: At intersection A, the traffic light flashes frequently / is not on. The number of words must be within 100 words."

[0081] Then, the generated prompt words are input into the large language model to generate several event simulation data, some of which are shown below: (1) I am an ordinary citizen. This morning, when I passed an intersection near our community, I found that the red light at the northbound intersection was flashing red. I saw that vehicles traveling northbound at the intersection had been queuing up to wait for the red light to be released, and the traffic at the intersection was blocked and the road was seriously congested. I hope that the relevant departments can repair the red light as soon as possible to ensure normal traffic.

[0082] (2) I am an ordinary citizen. Today, I found that the red traffic light on the northbound lane of the intersection near my community was unstable. Vehicles traveling northbound were forced to wait for the red light to be released at the intersection for a long time. The road was seriously congested and vehicle traffic was blocked. Please ask the relevant departments to repair the traffic lights as soon as possible, restore the normal driving indication function, and ensure normal traffic.

[0083] (3) I am a citizen. I recently discovered that the red traffic light on the northbound lane of a crossroad near my community often has display failures and remains red for a long time. As a result, vehicles are forced to wait for the red light to be released at the intersection for a long time, and vehicles cannot pass normally, causing serious traffic congestion. The relevant departments can repair the traffic lights as soon as possible to ensure normal traffic on the road.

[0084] In this way, a set number of event simulation data can be effectively simulated and generated, thereby effectively expanding the number of model training samples.

[0085] Corresponding to the above-mentioned implementation processes, the event distribution system can perform code modularization to divide the system code into corresponding functional modules.

[0086] For example, it can be divided into large language model event simulation module, data processing module, program running module, algorithm module, training evaluation module, interface deployment module and interface stress testing module, etc.

[0087] Among them, the functions of the large language model event simulation module include building prompt word templates, reading event feature lists, dynamically completing prompt words, and generating simulated events.

[0088] The functions of the data processing module include data cleaning, data distribution statistics and data set segmentation of multi-source event texts obtained from the event distribution system.

[0089] The functions of the program running module include setting model hyperparameters, setting file save paths, and preparing training sample data.

[0090] The functions of the algorithm module include neural network design and sample-based model testing.

[0091] The functions of the training and evaluation module include model training optimization, training data loading, and model validation and evaluation.

[0092] The functions of the training evaluation module include using the test set to perform a comprehensive evaluation of various indicators on the fine-tuned model.

[0093] The functions of the interface deployment module include deploying services to the production environment and providing services to the outside world in the form of HTTP or other interfaces.

[0094] The functions of the interface stress testing module include simulating multiple demands at the same time and testing the response speed, efficiency and upper limit of the service.

[0095] Furthermore, in one embodiment, the event allocation method in the embodiment of the present application further includes: Determine the event importance of the event to be allocated based on the target event's belonging department; determine the event urgency of the event to be allocated based on the time information in the target event text; determine the event belonging area of ​​the event to be allocated based on the location information in the target event text; associate the target event text, the target event's belonging department, the event importance, the event urgency and the event belonging area and store them in the allocation database.

[0096] Here, it is necessary to use the location of the event involved in the event text to determine the event's attribution area to ensure that the event can be accurately allocated to the department under the corresponding attribution area, ensuring the efficiency and accuracy of event allocation.

[0097] After obtaining the text of the event to be distributed, it is input into the first model to obtain the classification result of the model output. After obtaining the event category to which the current text belongs, the event feature list can be further queried to obtain the event urgency, event importance, and event belonging area of ​​the event to be distributed, and these data are stored together in the preset library to be distributed to ensure the effective storage of the parsed data and realize the subsequent orderly distribution processing.

[0098] In an optional distribution process, combined with Figure 3 As shown, based on the department to which the target event belongs, the event to be allocated is allocated, including: Step 301 , selecting from a distribution library the first target event text, the first target event belonging department, the first event importance, the first event urgency, and the first event belonging area stored in association with the current first event to be distributed.

[0099] Here, the first event to be distributed is one of the target event texts stored in the distribution library.

[0100] When executing the distribution processing of events, the events in the distribution library need to be distributed in sequence, and an event that currently needs to be distributed can be used as the first event to be distributed to execute relevant processing steps.

[0101] Step 302: Based on the department to which the first target event belongs and the region to which the first event belongs, scores of event handling personnel in the corresponding event handling group are obtained.

[0102] Different event-attribution departments under each event-attribution area can set up corresponding event handling groups, which include several event handling personnel. These event handling personnel can be scored. The scoring criteria include, for example, event handling efficiency, satisfaction feedback on event handling results, job level of event handling personnel, busyness of event handling personnel, etc.

[0103] Step 303: Determine a target handling person from the event handling group based on the first event importance, the first event urgency and the score.

[0104] The event handlers can be ranked based on their scores, and the importance and urgency of the event can be combined to select target handlers from the ranked event handlers who match the importance and urgency of the current first event to be assigned, to ensure that emergency events can be handled more quickly and that the human resources for event handling are reasonably arranged and utilized.

[0105] Step 304: distribute the first target event text to target handling personnel for event processing.

[0106] In the above process, during the distribution and handling of events, the event urgency, event importance, event department and event region of the event to be distributed are obtained from the distribution database, and the comprehensive scores of the handling personnel in the preset handling personnel group are calculated. Then, based on the event urgency, event importance, event department and event region and the comprehensive score, the event text of the event to be distributed is distributed to the corresponding handling personnel for processing, thereby realizing the intelligent distribution and processing of online events, ensuring the effective distribution of events and improving the efficiency of event processing.

[0107] Next, combine Figure 4 As shown, a specific implementation process of the above event allocation method is described.

[0108] First, event texts from different data sources are collected and stored in the event text library. After data preprocessing, the collected event texts are decomposed into corpus and word vectorized based on semantic relationship information to obtain vectorized expressions of the event texts, which are then input into the AI ​​language model (specifically the first model in the aforementioned embodiment) for classification processing to obtain the output event classification results, and based on the classification processing results, the time texts are allocated to the departments to which the relevant events belong.

[0109] If the distribution is correct, the event distribution process is completed, and the correct distribution process result can be used as verification information of the correct distribution of the event text and recorded back in the event text library.

[0110] If the allocation is wrong, on the one hand, the event text of the wrong allocation can be re-input into the AI ​​language model for re-classification until the allocation is correct. On the other hand, manual processing can be introduced to manually reclassify the event text of the wrong allocation and perform corresponding allocation processing.

[0111] During this process, the AI ​​language model can distribute correct verification information along with the continuously updated event texts in the event text library, form model optimization training samples with the corresponding event texts, and continuously iterate and optimize the model.

[0112] This can effectively introduce the model to implement event distribution processing in specific event scenarios, and reversely guide the continuous iterative optimization of the model based on the distribution processing results to improve the event distribution processing effect.

[0113] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0114] Based on the same inventive concept, the embodiment of the present application further provides an event allocation device. The event allocation device provided in the embodiment of the present application can implement each process of the embodiment of the above event allocation method and can achieve the same technical effect. Therefore, the specific limitations in one or more event allocation device embodiments provided below can refer to the limitations of the event allocation method above. To avoid repetition, they will not be repeated here.

[0115] In this embodiment, the computing side can be divided into functional modules according to the above method. For example, each function can be divided into functional modules, or two or more functions can be integrated into one processing module.

[0116] See also Figure 5 , Figure 5 This is a structural diagram of an event distribution device provided in an embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0117] The event distribution device 500 includes: An acquisition module 501 is used to acquire a target event text, where the target event text corresponds to the event to be allocated; Processing module 502, for inputting the target event text into a first model to obtain an event classification result output by the first model; the first model is trained based on event extension data, the event extension data includes event simulation data generated by simulating event features in an event feature list; the event features include the department to which the event belongs and the type to which the event belongs; A determination module 503 is used to determine the target event belonging department corresponding to the target event text from the event feature list based on the event classification result; The distribution module 504 is used to distribute the events to be distributed based on the departments to which the target events belong.

[0118] Optionally, the device further comprises: Model training module, used to: Acquire the pre-trained first model and real event data; generate the event simulation data based on the event features in the event feature list and the second model; construct a model training sample containing the event simulation data and the real event data; and optimize the pre-trained first model based on the model training sample.

[0119] Optionally, the event feature list includes multiple feature items; and the model training module is specifically used to: Reading event features of different types of events under each specific feature entry from the event feature list; Filling the event features into a pre-built prompt word generation template to generate prompt words corresponding to each type of event; The prompt word is input into the second model to obtain a set number of event simulation data output by the second model.

[0120] Optionally, the model training module is also used to: Constructing a common language, and constructing keyword filling positions corresponding to the feature items in the common language based on semantic relationship information between the common language and each of the feature items; The prompt word generation template including the general language and the keyword filling position is obtained.

[0121] Optionally, the acquisition module 501 is specifically configured to: Get the initial event text from different channels; After deduplication of the initial event text, the target event text is obtained.

[0122] Optionally, the event allocation device 500 further includes: Storage modules for: Determining the importance of the event to be allocated based on the department to which the target event belongs; Determining the urgency of the event to be allocated based on the time information in the target event text; Determine the event belonging area of ​​the event to be allocated based on the location information in the target event text; The target event text, the target event belonging department, the event importance, the event urgency and the event belonging area are associated and stored in the distribution library.

[0123] Optionally, the allocation module 504 is specifically configured to: Selecting from the distribution database the first target event text, the first target event belonging department, the first event importance, the first event urgency, and the first event belonging area stored in association with the current first event to be distributed; Based on the department to which the first target event belongs and the region to which the first event belongs, obtaining scores of event handling personnel in a corresponding event handling group; Determining a target handling person from the event handling group based on the first event importance, the first event urgency and the score; The first target event text is distributed to the target handling personnel for event processing.

[0124] The above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0125] It should be noted that the relevant contents of each step involved in the above method embodiment can all be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0126] Each module in the above event distribution device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0127] In one embodiment, Figure 6 As shown, a computer device is provided. The computer device 6 of this embodiment includes: at least one processor 600 ( Figure 6 Only one is shown in the figure), a memory 601, and a computer program 602 stored in the memory 601 and executable on the at least one processor 600, wherein the processor 600 implements the steps of any of the above-mentioned method embodiments when executing the computer program 602.

[0128] The computer device 6 may be a computing device such as a desktop computer, a notebook, a palm computer, etc. The computer device 6 may include, but is not limited to, a processor 600 and a memory 601. Those skilled in the art will understand that Figure 6 It is only an example of the computer device 6 and does not constitute a limitation of the computer device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.

[0129] The processor 600 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0130] The memory 601 may be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. The memory 601 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 6. Further, the memory 601 may also include both an internal storage unit and an external storage device of the computer device 6. The memory 601 is used to store the computer program and other programs and data required by the computer device. The memory 601 may also be used to temporarily store data that has been output or is to be output.

[0131] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0132] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0133] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0134] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which can be electrical, mechanical or other forms.

[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0137] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0138] The present application implements all or part of the processes in the above-mentioned embodiment methods, and may also be implemented through a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0139] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An event allocation method, characterized in that: include: Acquire a target event text, wherein the target event text corresponds to the event to be allocated; Inputting the target event text into a first model to obtain an event classification result output by the first model; The first model is trained based on event extension data, wherein the event extension data includes event simulation data generated by simulation based on event features in the event feature list; the event features include the department to which the event belongs and the type to which the event belongs; Based on the event classification result, determining the target event belonging department corresponding to the target event text from the event feature list; Based on the department to which the target event belongs, the event to be allocated is allocated.

2. The method according to claim 1, characterized in that Before inputting the target event text into the first model to obtain the event classification result output by the first model, the method further includes: Obtaining the pre-trained first model and real event data; generating the event simulation data based on the event features in the event feature list and the second model; Constructing a model training sample including the event simulation data and the event real data; Based on the model training samples, the pre-trained first model is optimized and trained.

3. The method according to claim 2, characterized in that The event feature list includes a plurality of feature entries; and generating the event simulation data based on the event features in the event feature list and the second model includes: Reading event features of different types of events under each specific feature entry from the event feature list; Filling the event features into a pre-built prompt word generation template to generate prompt words corresponding to each type of event; The prompt word is input into the second model to obtain a set number of event simulation data output by the second model.

4. The method according to claim 3, characterized in that Before reading the event features of different types of events under each specific feature entry from the event feature list, the method further includes: Constructing a common language, and constructing keyword filling positions corresponding to the specific feature items in the common language based on semantic relationship information between the common language and each of the specific feature items; The prompt word generation template including the general language and the keyword filling position is obtained.

5. The method according to claim 1, characterized in that The step of obtaining the target event text includes: Get the initial event text from different channels; After deduplication of the initial event text, the target event text is obtained.

6. The method according to claim 1, characterized in that Also includes: Determining the importance of the event to be allocated based on the department to which the target event belongs; Determining the urgency of the event to be allocated based on the time information in the target event text; Determine the event belonging area of ​​the event to be allocated based on the location information in the target event text; The target event text, the target event belonging department, the event importance, the event urgency and the event belonging area are associated and stored in the distribution library.

7. The method according to any one of claims 1 to 6, characterized in that: The event allocation for the event to be allocated based on the department to which the target event belongs includes: Selecting from the distribution database the first target event text, the first target event belonging department, the first event importance, the first event urgency, and the first event belonging area stored in association with the current first event to be distributed; Based on the department to which the first target event belongs and the region to which the first event belongs, obtaining scores of event handling personnel in a corresponding event handling group; Determining a target handling person from the event handling group based on the first event importance, the first event urgency and the score; The first target event text is distributed to the target handling personnel for event processing.

8. An event distribution device, characterized in that: include: An acquisition module, used for acquiring a target event text, wherein the target event text corresponds to the event to be allocated; A processing module, used for inputting the target event text into a first model to obtain an event classification result output by the first model; The first model is trained based on event extension data, wherein the event extension data includes event simulation data generated by simulation based on event features in the event feature list; the event features include the department to which the event belongs and the type to which the event belongs; A determination module, configured to determine, based on the event classification result, from the event feature list, the target event belonging department corresponding to the target event text; The distribution module is used to distribute the events to be distributed based on the departments to which the target events belong.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Model training method and device, prediction method and device, data processing device and medium

    CN109858625A

  • Method for classifying and dispatching events and constructing uniform event type system

    CN114911901A

  • Urban event distribution method and system and storage medium

    CN117493906A

Cited By

  • Event allocation method combining event attribution view and semantic view

    CN121256481A