An RPA process mining method and device based on event relation extraction
Patent Information
- Application Number
- CN202310997294.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2043-08-07
AI Technical Summary
In traditional RPA process mining tasks, using the alpha algorithm to process event logs requires manual segmentation of user behavior logs, which is time-consuming and labor-intensive. Furthermore, existing methods lack consideration for contextual information, resulting in inaccurate extraction of event relationships.
An event relationship extraction method is adopted, which extracts contextual semantic information from user behavior logs through BERT and Bi-LSTM models, constructs an event relationship extraction model, generates a process mining model, eliminates the manual segmentation step, and improves accuracy.
It improves the efficiency of process mining tasks, reduces manpower and time costs, enhances the accuracy of event relationship extraction, and generates clearer process mining models.
Smart Images

Figure CN117314140B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of process mining technology, and in particular to an RPA process mining method and apparatus based on event relationship extraction. Background Technology
[0002] Robotic Process Automation (RPA) is a technology that uses software to automate business processes according to specified rules and workflows, thereby assisting or replacing manual tasks. Simply put, RPA uses robotic methods to automatically execute certain processes. Its input is typically structured data, i.e., data with a standard table structure. RPA software completes computer operations according to the set workflow, replacing or assisting humans in performing repetitive tasks with clearly defined rules—a form of "digital labor." Although traditional information systems are already used in many enterprises, these systems still involve a large amount of repetitive work that requires human intervention, reducing system efficiency. Furthermore, manual processing is prone to errors, further reducing the effectiveness of these information systems. With the emergence of Robotic Process Automation, it has become possible to use RPA technology to improve the automation of enterprise information systems, reduce error rates, increase work efficiency, and enhance compliance. Statistics show that using RPA technology to handle data maintenance work in SAP (Systems, Applications and Products in Data Processing) and other systems can reduce time costs by 70%, thereby saving company human resources. Using technologies like RPA to process various workflows in OA (Office Automation) systems can improve work efficiency by 30%. Furthermore, RPA can operate 24 / 7, ensuring that processes run according to specifications and without errors. Utilizing RPA technology can enhance an enterprise's digital capabilities and further improve work efficiency. Currently, the RPA industry is seeking smarter and more innovative RPA solutions that utilize cognitive computing and embedded intelligence to automate decision-making processes. Increased intelligence in such systems translates to enhanced technical logic capabilities, thereby achieving high levels of process automation and creating value for stakeholders.
[0003] RPA can be applied to repetitive, rule-based workflows across almost all industries, improving data accuracy, optimizing financial organizational structures, enhancing corporate competitiveness, and bringing numerous benefits to businesses. First, using RPA technology can improve efficiency and free up human resources. By replacing manual operations, RPA robots can effectively reduce the burden on employees from a large amount of repetitive work, thereby freeing up human resources to be invested in more valuable areas. Second, RPA is easy to modify and can quickly adapt to environmental changes. RPA can not only accurately complete a large amount of work in a shorter time, but also better adapt to environmental changes. For example, technology upgrades and adjustments to business needs require a relatively complex and lengthy process for humans to learn and accept new things, while RPA can accomplish this by modifying processes in programming or introducing new processes, thus adapting to changes more easily and quickly. Finally, using RPA technology can also be used for risk control and enhance compliance management. RPA has traceable record attributes, which have a particular advantage in compliance. Robots can ensure that they do not deviate from their predetermined course to perform other tasks, thus providing a complete audit trail.
[0004] Business intelligence software is widely used in modern enterprise operation optimization and management. It processes historical and current data, providing analytical functions such as data collection, mining, and visualization to help enterprises quickly discover feasible insights that can drive strategic decision-making. However, these tools typically assume that enterprise processes are known, and they only perform data-related analytical operations (such as classification, clustering, and association analysis), lacking support for explicit processes. To address this need, a new research field has emerged—process mining.
[0005] A process is a series of operations taken to achieve a specific goal. Process mining aims to bridge the gap between traditional model-driven methods (such as business process modeling and model correctness verification) and newer data-driven methods (such as data mining and machine learning). Process mining technology is based on sequentially recorded events, each event representing an activity and associated with a specific business scenario. By summarizing additional information from the event logs, it forms a visual representation of the actual process in the form of a "flowchart," showcasing process performance and compliance to business leaders, thereby supporting decision-making. The process of process mining generally consists of three steps: process discovery, consistency verification, and process improvement. Process discovery aims to create a model based on event logs without using any prior information. This model is mostly a process model, but it could also be other models, such as role interaction models. Consistency verification aims to verify the compliance between the process model and the event logs. It mainly focuses on comparing the event logs and the process model, including compliance checks between old logs and new models, old logs and old models, new logs and new models, and new logs and old models. Consistency checks compare the actual process execution with pre-defined standard path rules to identify discrepancies between the actual process execution and the ideal pre-defined standard. Process improvement, on the other hand, uses knowledge and information obtained from the event logs recorded in the actual process to extend or improve the existing process.
[0006] Process mining has a wide range of applications due to its strong compatibility and lack of industry-specific attributes. Taking the financial and insurance sectors, where process mining is most widely used, as an example, their business processes, such as loan processing, claims management, and insurance applications, are highly structured, and all events during process execution are securely recorded by the system. Therefore, process mining can be effectively applied in these scenarios to shorten process time, improve efficiency, and enhance compliance. Furthermore, process mining can also be used to improve processes in different organizations. For example, in telecommunications call centers, an increase in repeat calls usually indicates a problem with agent service quality because the customer's issue was not resolved on the first call. If, in the initial stage, the company spends insufficient time training agents or instructs agents to shorten call times as much as possible to save costs, this leads to repeated customer follow-ups, lengthening the problem-solving process. In the long run, this will put significant pressure on the company's operating costs. By performing process mining on call service logs, the accuracy of the first response can be identified, improving customer experience and call center efficiency, and reducing call center operating costs. Overall, process mining can greatly improve work efficiency and has been widely applied in finance, insurance, telecommunications, and other fields.
[0007] Workflow mining is a technique for extracting useful information from workflow logs. Currently, traditional RPA workflow mining tasks use the alpha algorithm to process event logs. This requires first using event extraction techniques or manual segmentation to process user behavior logs into event logs, and then applying the alpha algorithm to the event logs to obtain the relationships between events. Among these methods, manually segmenting event logs is extremely time-consuming and labor-intensive when faced with a large number of tedious and repetitive operations. Summary of the Invention
[0008] In view of this, the present invention proposes an RPA process mining method based on event relationship extraction, comprising the following steps:
[0009] S1. Obtain user behavior logs, which consist of sentences;
[0010] S2. Combine sentences from the user behavior log in pairs to form M new sentences W = (W1, W2, ..., W...). M Each new sentence is represented as a sequence of real-valued vectors.
[0011] S3. Input each real-valued vector sequence into the pre-trained BERT model for learning to obtain the contextual semantic information of each new sentence;
[0012] S4. Input the contextual semantic information of each new sentence into the Bi-LSTM model to obtain the hidden state sequence of the length of each new sentence;
[0013] S5. Input the hidden state sequence of each new sentence into a pooling layer to obtain the relation vector representation of each new sentence. The relation vector representations of all sentences constitute a relation vector representation sequence R = (r1, r2, ..., r...). M );
[0014] S6. Input the relation vector representations of all new sentences into the self-attention layer to obtain new sentence relation vector representations that integrate contextual information;
[0015] S7. Input the new sentence relation vector representation with integrated context information into the fully connected layer, use the softmax function to obtain the probability of each new sentence belonging to different event relation labels, and select the event relation label with the highest probability as the classification result of the event relation type of the new sentence;
[0016] S8. Based on the classification results of the event relationship type of each new sentence, generate the corresponding footprint matrix and construct the Petri net, and finally convert the event log into the corresponding process mining model.
[0017] The present invention also includes an RPA process mining device based on event relationship extraction, the device comprising:
[0018] processor;
[0019] A memory on which computer programs that can run on the processor are stored;
[0020] When the computer program is executed by the processor, it implements an RPA process mining method based on event relationship extraction.
[0021] The beneficial effects of the technical solution provided by this invention are:
[0022] This invention acquires user behavior logs, represents the sentences in the logs as a sequence of real-valued vectors, and inputs it into a pre-trained BERT model for learning to obtain the contextual semantic information of each sentence. The contextual semantic information of each sentence is then input into a Bi-LSTM model to obtain a hidden state sequence of length for each sentence. This hidden state sequence is then input into a pooling layer to obtain a relation vector representation sequence. This relation vector representation sequence is then input into a self-attention layer to obtain a sentence relation vector representation that integrates the contextual information. Finally, this sentence relation vector representation is input into a fully connected layer, and a softmax function is used to obtain the probability that each sentence belongs to different event relation labels. The event relation label with the highest probability is selected as the classification result for the event relation type of that sentence. Based on the classification result of the event relation type for each sentence, a corresponding footprint matrix is generated, and a Petri net is constructed. Ultimately, the event logs are converted into a corresponding process mining model. The technical solution of this invention uses an event relation extraction model to automatically mine event relations in user behavior logs. Based on event relation mining, it proposes a method to construct an event relation extraction model based on the relationships between events to reflect the structural relationships between text events. This method can:
[0023] (1) It can more clearly express the semantic information of the text and the importance of the relationships between events. It can also eliminate the tedious steps of the alpha algorithm and generate process mining models more quickly, thereby improving the efficiency of process mining tasks.
[0024] (2) Improve the accuracy of event relationship extraction: Previous methods typically only use information from the current sentence to identify the order of event pairs within a sentence, without considering contextual information. This limited sentence information is insufficient to accurately identify event relationships within a sentence. This invention uses a context enhancement module to learn the connection between the sentence and other sentences in the context, thus improving the accuracy of event relationship extraction.
[0025] (3) Reduced costs: This patent improves the traditional process mining method by using event relationship extraction to replace the manual segmentation of user behavior logs, which reduces manpower and time costs to a certain extent and avoids the errors caused by manual log segmentation. Attached Figure Description
[0026] Figure 1 This is a flowchart of an RPA process mining method based on event relationship extraction according to the present invention;
[0027] Figure 2 This embodiment of the invention constructs a Petri net based on event relationships. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0029] Explanation of terms in the embodiments of this invention:
[0030] Event Relationship Extraction
[0031] Typically, events do not occur in isolation; their occurrence and development are often related to other external events. These connections can be explicit or implicit. Event relationships are a pragmatic form of describing objective facts through text, frequently appearing in news reports, commentaries, blog posts, and other media. Extracting related events is called event relationship extraction. The field of event relationship extraction mainly includes four types of inter-event relationships: coreference, temporal sequence, causality, and sub-event relationships. Coreference indicates that two events describe the same target event; temporal sequence indicates the chronological order of two events; causality refers to the interaction between events, i.e., one event is the result of another; and sub-event relationships indicate that one event is a sub-event of another.
[0032] Bi-LSTM model
[0033] Bi-LSTM is a combination of forward LSTM and backward LSTM. A problem with using LSTM to model sentences is its inability to encode information from back to front. Bi-LSTM, however, can better capture bidirectional semantic dependencies.
[0034] The key to LSTM is the cell state, used to store the current cell's state information and pass it to the next cell. LSTM mainly designs three different control gate structures: input gate, output gate, and forget gate. These three gates are used to preserve and transmit signals in the control model, and the specific calculation formulas are as follows:
[0035]
[0036] c t =i t ⊙d t +f t ⊙c t-1
[0037] h t =o t ⊙tanh(c t )
[0038] Where t is the time step, i t It is an input gate, f t It's the Gate of Oblivion, o t It is an output gate, d t It is a temporary state, c t It refers to the state of the storage unit, which is obtained through random initialization. t Initial value, h t It is in a hidden state, x t It is the input at the current time step, σ is the activation function, and W is the input at the current time step. L b L These are network parameters.
[0039] This invention proposes an RPA process mining method based on multimodal event extraction, referencing... Figure 1 , Figure 1 This is a flowchart of an RPA process mining method based on event relationship extraction according to the present invention, including the following steps:
[0040] S1. Obtain user behavior logs, which consist of sentences.
[0041] User behavior logging tools are used to record user actions during business processes, generating raw user behavior logs. These logs are then processed, converting each action into a sentence; therefore, the processed user behavior log consists of multiple sentences.
[0042] S2. Combine sentences from the user behavior log in pairs to form M new sentences W = (W1, W2, ..., W...). M For example, if there are N sentences in a user behavior log, after combining them in pairs, N(N-1) / 2 new sentences are generated, and each new sentence is represented as a sequence of real-valued vectors.
[0043] First, given a sentence, each word in the sentence is mapped by looking up its word vector in a pre-trained word vector table. At this point, the sentence is represented as a sequence of real-valued vectors W. m =(w m1 w m2 , ..., w mn ), W m w represents the m-th new sentence. mi Let n represent the vector of the i-th word in the m-th new sentence, and n represent the length of the m-th new sentence.
[0044] S3. Input each real-valued vector sequence into the pre-trained BERT model for learning to obtain the contextual semantic information of each new sentence.
[0045] The BERT model uses the Transformer's encoding block structure as a feature extractor to obtain deeper and richer contextual semantic information V for each new sentence. m =(v m1 v m2 , ..., v mn ):
[0046] v mi =Transformer(w mi (1)
[0047] Among them, V m v represents the contextual semantic information of the m-th new sentence. mi w represents the contextual semantic information of the vector of the i-th word in the m-th new sentence. mi This represents the vector of the i-th word in the m-th new sentence.
[0048] S4. Input the contextual semantic information of each new sentence into the Bi-LSTM model to obtain the hidden state sequence of each new sentence.
[0049] H m H represents the hidden state sequence representing the length of the m-th new sentence. m =(h m1 h m2 , ..., h mn ), h mi This represents the hidden state of the i-th word in the m-th new sentence:
[0050]
[0051] Among them, V m =(v m1 v m2 , ..., v mn V m v represents the contextual semantic information of the m-th new sentence. mi Let || represent the contextual semantic information of the vector of the i-th word in the m-th new sentence, and || denote the concatenation operation. This represents the encoding result of the forward LSTM. This represents the encoding result of the backward LSTM. and After splicing, we get h mi .
[0052] S5. Input the hidden state sequence of each new sentence into a pooling layer to obtain the relation vector representation of each new sentence. The relation vector representations of all sentences constitute a relation vector representation sequence R = (r1, r2, ..., r...). M ).
[0053] The hidden state sequence of each new sentence is input into a pooling layer to obtain the relation vector representation of each new sentence, which can be expressed by the formula:
[0054] r m =AvgPool(H m (3)
[0055] Where, r m H represents the relation vector representation of the m-th sentence. m Let AvgPool represent the hidden state sequence of the length of the m-th new sentence. AvgPool is the average pooling of the hidden states of the sentences.
[0056] S6. Input the relation vector representations of all new sentences into the self-attention layer to obtain new sentence relation vector representations that integrate contextual information.
[0057] The calculation formula is as follows:
[0058] score=exp(tanh(RW1+b1)W2+b2) (4)
[0059] H′ m =norm(score)*R (5)
[0060] Where score represents the attention score, tanh represents the tanh activation function, W1 and W2 are different weight matrices, b1 and b2 are different bias terms, R represents the relation vector representing the sequence, norm is the L2 regularization operation, and H′ m A new sentence relation vector representation that integrates contextual information.
[0061] S7. Input the new sentence relationship vector representation with integrated context information into the fully connected layer, use the softmax function to obtain the probability of each new sentence belonging to different event relationship labels, and select the event relationship label with the highest probability as the classification result of the event relationship type of the new sentence.
[0062] The new sentence relation vector representation, incorporating comprehensive contextual information, is input into the fully connected layer. The expression for obtaining the probability that each new sentence belongs to a different event relation label using the softmax function is as follows:
[0063] Z m =soffmax([H m H′ m Wz +b z )
[0064] Among them, H m H′ represents the hidden state sequence representing the length of the m-th new sentence. m The new sentence relation vector representation that integrates contextual information, [H m H′ m W z This indicates that vector H m and H′ m After splicing with W z Multiply, W z It is the weight matrix, b z It is a bias term.
[0065] S8. Based on the classification results of the event relationship type for each new sentence, generate the corresponding footprint matrix and construct a Petri net, referring to... Figure 2 , Figure 2 This invention constructs a Petri net based on event relationships, where x, y, and z represent different events. (x→y) indicates a causal relationship between x and y; (x→y, x→z, y||z) indicates causal relationships between x and y, and x and z, with y and z exhibiting a parallel relationship; (x→y, x→z, y#z) indicates causal relationships between x and y, and x and z, with y and z being unrelated; and (x→z, y→z, y#x) indicates causal relationships between x and z, and y and z, with y and x being unrelated. Based on the direct following relationships of events, process mining is performed to construct the Petri net. Finally, the event logs are converted into a corresponding process mining model.
[0066] This invention also proposes an RPA process mining device based on event relationship extraction, comprising:
[0067] processor;
[0068] A memory on which computer programs that can run on the processor are stored;
[0069] The computer program, when executed by the processor, implements an RPA process mining method based on event relationship extraction.
[0070] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for RPA process mining based on event relationship extraction, characterized in that, Includes the following steps: S1. Obtain user behavior logs, which consist of sentences; S2. Combine sentences from the user behavior log in pairs to form M new sentences. Each new sentence is represented as a sequence of real-valued vectors; S3. Input each real-valued vector sequence into the pre-trained BERT model for learning to obtain the contextual semantic information of each new sentence; S4. Input the contextual semantic information of each new sentence into the Bi-LSTM model to obtain the hidden state sequence of the length of each new sentence; S5. Input the hidden state sequence of each new sentence into a pooling layer to obtain the relation vector representation of each new sentence. The relation vector representations of all sentences constitute a relation vector representation sequence. ; S6. Input the relation vector representations of all new sentences into the self-attention layer to obtain new sentence relation vector representations that integrate contextual information; S7. Input the new sentence relation vector representation with integrated context information into the fully connected layer, use the softmax function to obtain the probability of each new sentence belonging to different event relation labels, and select the event relation label with the highest probability as the classification result of the event relation type of the new sentence; S8. Based on the classification results of the event relationship type of each new sentence, generate the corresponding footprint matrix and construct the Petri net, and finally convert the event log into the corresponding process mining model.
2. The RPA process mining method based on event relationship extraction according to claim 1, characterized in that, In step S2, representing each new sentence as a sequence of real-valued vectors is specifically as follows: Each new sentence is input into the order relation encoding module, which maps each word in the input sentence by looking up the word vector in a pre-trained word vector table, thus representing each new sentence as a sequence of real-valued vectors. , This represents the m-th new sentence. This represents the m-th new sentence. There are n word vectors, where n represents the length of the m-th new sentence.
3. The RPA process mining method based on event relationship extraction according to claim 1, characterized in that, In step S3, the BERT model uses the Transformer's encoding block structure as a feature extractor to obtain the contextual semantic information of each new sentence. : (1) in, This represents the contextual semantic information of the m-th new sentence. The contextual semantic information representing the vector of the i-th word in the m-th new sentence. This represents the m-th new sentence. Each word vector.
4. The RPA process mining method based on event relationship extraction according to claim 1, characterized in that, Step S4 is as follows: Let m be the sequence of hidden states representing the length of the m-th new sentence. , This represents the hidden state of the i-th word in the m-th new sentence: (2) in, , This represents the contextual semantic information of the m-th new sentence. Let || represent the contextual semantic information of the vector of the i-th word in the m-th new sentence, and || denote the concatenation operation. This represents the encoding result of the forward LSTM. This represents the encoding result of the backward LSTM. and After splicing, the result is .
5. The RPA process mining method based on event relationship extraction according to claim 1, characterized in that, In step S5, the hidden state sequence of each new sentence is input into a pooling layer to obtain the relation vector representation of each new sentence, which is expressed by the formula: (3) in, The relation vector representation of the m-th new sentence. Let AvgPool represent the hidden state sequence of the length of the m-th new sentence, and let AvgPool be the average pooling of the hidden states of the new sentence.
6. The RPA process mining method based on event relationship extraction according to claim 1, characterized in that, The calculation formula for step S6 is as follows: (4) (5) Where score represents the attention score, and tanh represents the tanh activation function. and They are different weight matrices. and These are different bias terms; R represents the relation vector representing the sequence, and norm is the normalization operation. A new sentence relation vector representation that integrates contextual information.
7. The RPA process mining method based on event relationship extraction according to claim 1, characterized in that, In step S7, the new sentence relation vector representation, which integrates contextual information, and the sentence hidden state are concatenated and input into the fully connected layer. The expression for obtaining the probability that each new sentence belongs to a different event relation label using the softmax function is as follows: in, Let m be the sequence of hidden states representing the length of the m-th new sentence. The new sentence relation vector representation represents the overall contextual information. Indicates will and splicing, It is a weight matrix. It is a bias term.
8. An RPA process mining device based on event relationship extraction, characterized in that, The device includes: processor; A memory on which computer programs that can run on the processor are stored; When the computer program is executed by the processor, it implements an RPA process mining method based on event relationship extraction as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for dynamically and real-time mining software process activities from SVN log event streams
CN109062763A
Event extraction method based on theme features and implicit sentence structures
CN113901813A
