Process Understanding for Robotic Process Automation (RPA) through Sequence Extraction

The method addresses RPA challenges by automating workflow design and task prioritization through sequence extraction, enhancing efficiency and privacy in RPA processes.

JP7572971B2Active Publication Date: 2024-10-24UIPATH INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021565069
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-19
Filing Date
2020-09-18
Publication Date
2024-10-24
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

Existing robotic process automation (RPA) technologies face challenges in accurately discovering, capturing, and automating repetitive processes due to time-, resource-, and compute-intensive manual discovery methods, which can expose sensitive data and often miss or misidentify important tasks.

Method used

A method and apparatus for sequence and pattern extraction in RPA that reduces manual input by designing workflows, generating process documentation, and prioritizing tasks for automation, utilizing sequence models to identify distinct processes and state transitions.

Benefits of technology

This approach enhances RPA by reducing manual input, improving privacy, and automating complex tasks efficiently, while minimizing costs and enhancing compliance through automated workflow generation and documentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007572971000001
    Figure 0007572971000001
  • Figure 0007572971000002
    Figure 0007572971000002
  • Figure 0007572971000003
    Figure 0007572971000003
Patent Text Reader

Abstract

A sequencing model may be utilized for the captured steps of the application's workflow. The sequencing model may determine the process and state transitions of the captured steps. Based on changes in the sequencing model and action log files associated with the captured steps, variations, decision actions, or rule-based actions may be identified. Based on the identified variations, decision actions, or rule-based actions, a hierarchy may be generated to automatically generate an automated workflow for robotic process automation (RPA).
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of U.S. Application No. 16 / 575,600, filed Sep. 19, 2019, the contents of which are incorporated herein by reference.

[0002] Robotic Process Automation (RPA) may automate repetitive operations, functions, or workflows in enterprise platforms, virtual machine (VM) configurations, remote desktops, cloud computing, desktop applications, mobile applications, etc. Certain processes, including activities, states, tasks, etc., may be critical, high priority, or high value for automation with RPA. Discovering, capturing, mining, identifying, designing, etc., processes for RPA may require time, resource, or compute intensive investments, especially if performed partially or entirely manually. Manual discovery or design may also expose personal information or data for enterprise or mobile applications in an undesirable manner in RPA automation.

[0003] For process understanding of RPA, sequences or patterns may be determined or extracted from applications, users, etc., logs, records, or files. Existing sequence extraction configurations may result in overlooking, misidentification, or duplication of important tasks for automating the process of RPA application. It is desirable to discover process and state transitions by extracting sequences of important tasks or high-priority tasks for RPA. Summary of the Invention

[0004] Methods and apparatus are provided for discovering, mining, capturing, etc. distinct processes and state transitions using sequence or pattern extraction, and prioritizing processes or tasks for automation by Robotic Process Automation (RPA) robots. Workflows can be designed or redesigned for automation by RPA with reduced manual input. Based on the process understanding, process documentation can be generated and exported. [Brief description of the drawings]

[0005] A more detailed understanding may be had from the following description, given by way of example in conjunction with the accompanying drawings in which like reference numerals indicate similar elements and in which:

[0006] [Figure 1A] This is an explanatory diagram of the development, design, operation, or execution of Robotic Process Automation (RPA).

[0007] [Figure 1B] FIG. 2 is another explanatory diagram of the development, design, operation, or execution of RPA.

[0008] [Figure 1C] FIG. 1 is an illustration of a computing system or environment.

[0009] [Diagram 2] FIG. 1 is an illustration of discovering, mining, or identifying process sequences or patterns.

[0010] [Diagram 3] FIG. 1 is an illustration of analyzing randomness in a log or record file for the extraction of sequences or patterns.

[0011] [Figure 4]FIG. 13 is an illustration of sequence or pattern extraction by clustering actions to identify sequences for extraction in a log or record file.

[0012] [Diagram 5] FIG. 1 is an illustration of sequence or pattern extraction for process understanding.

[0013] [Figure 6] FIG. 1 is an illustration of automatic sequencing or pattern extraction for process understanding and workflow automation for robotic process automation.

[0014] In the methods and processes described herein, the steps described may be performed in any order and sub-steps not explicitly described or indicated may be performed. Also, "coupled" or "operably coupled" may mean that objects are connected, but may have zero or more intermediate objects between the connected objects. Also, any combination of the disclosed features / elements may be used in one or more embodiments. When used with reference to "A or B," it may include A, B, or A and B, and this may apply to longer lists as well. When using the notation X / Y, the notation may include X or Y. Alternatively, when using the notation X / Y, the notation may include X and Y. The notation X / Y may apply to longer lists as well, by the same logic as above.

[0015] FIG. 1A is an illustration of a development, design, operation, or execution 100 of a robotic process automation (RPA). A designer 102, also called a studio, development platform, development environment, etc., may be configured to generate code, instructions, commands, etc. for a robot to execute or automate one or more workflows. From the selection(s) that a computing system may provide to the robot, the robot may determine representative data for the area(s) of the visual display selected by a user or operator. As part of RPA, multi-dimensional shapes such as squares, rectangles, circles, polygons, freeforms, etc. may be utilized in the development and runtime of a UI robot in conjunction with computer vision (CV) operations or machine learning (ML) models.

[0016] Non-limiting examples of operations that may be accomplished by a workflow may include one or more of performing a login, filling out a form, information technology (IT) administration, and the like. To execute a workflow for UI automation, a robot may need to uniquely identify a particular screen element, such as a button, a checkbox, a text field, a label, and the like, regardless of application access or application development. Examples of application access may include local, virtual, remote, cloud, Citrix®, VMWare®, VNC®, Windows® Remote Desktop, Virtual Desktop Infrastructure (VDI), and the like. Examples of application development may include WIN32, Java, Flash, HyperText Markup Language (HTML), HTML5, Extensible Markup Language (XML), Javascript, C#, C++, Silverlight, and the like.

[0017] Workflows may include, but are not limited to, task sequences, flowcharts, finite state machines (FSMs), global exception handlers, and the like. Task sequences may be linear processes for handling linear tasks between one or more applications or windows. Flowcharts may be configured to handle complex business logic, allowing for decision integration and activity connection in more diverse ways through multiple branching logic operators. FSMs may be configured for large workflows. FSMs may use a finite number of states during their execution that may be triggered by conditions, transitions, activities, and the like. Global exception handlers may be configured to determine the behavior of the workflow when an execution error occurs, such as for debugging the process.

[0018] A robot may be an application, an applet, a script, etc., and may automate a UI that is transparent to the underlying operating system (OS) or hardware. At deployment, one or more robots may be managed, controlled, etc., by a conductor 104 (sometimes referred to as an orchestrator). The conductor 104 may direct or command the robot(s) or automation executor 106 to execute or monitor a workflow in a mainframe, web, virtual machine, remote machine, virtual desktop, enterprise platform, desktop app(s), browser, or such client, application, or program. The conductor 104 may act as a central or semi-central point to direct or command multiple robots to automate a computing platform.

[0019] In certain configurations, the conductor 104 may be configured to provide provisioning, deployment, configuration, queuing, monitoring, logging, and / or interconnectivity. Provisioning may include creating and maintaining connections or communications between the robot(s) or automation executor 106 and the conductor 104. Deployment may include ensuring delivery of package versions to robots assigned for execution. Configuration may include maintaining and delivering robot environment and process configurations. Queuing may include providing management of queues and queue items. Monitoring may include tracking robot specific data and maintaining user permissions. Logging may include storing and indexing logs in a database (e.g., an SQL database) and / or another storage mechanism (e.g., ElasticSearch®, which provides the ability to store large data sets and perform queries quickly. The conductor 104 may provide interconnectivity by serving as a centralized point of communication for third-party solutions and / or applications.

[0020] The robot(s) or automation executor 106 may be configured as unattended 108 or attended 110. For unattended 108 operation, the automation may be performed without third party input or control. For attended 110 operation, the automation may be performed by receiving input, commands, instructions, guidance, etc. from a third party component.

[0021] The robot(s) or automation executor 106 may be an execution agent that executes workflows built in the designer 102. A commercial example of a robot(s) for UI or software automation is UiPath Robots™. In some embodiments, the robot(s) or automation executor 106 may install the Microsoft Windows Service Control Manager (SCM) management service by default. As a result, such a robot may open an interactive Windows session under the local system account and may have Windows service rights.

[0022] In some embodiments, the robot(s) or automation executor 106 may be installed in user mode. These robots may have the same rights as the user for whom the given robot is installed. This feature may also be available for high density (HD) robots, allowing each machine to be fully utilized with maximum performance, such as in HD environments.

[0023] In certain embodiments, the robot(s) or automation executor 106 may be split, distributed, etc. into several components, each dedicated for a particular automation task or activity. The robot components may include an SCM managed robot service, a user mode robot service, an executor, an agent, a command line, etc. The SCM managed robot service may manage or monitor Windows sessions and act as a proxy between the conductor 104 and the execution host (i.e., the computing system on which the robot(s) or automation executor 106 executes). These services may be trusted and may manage credentials for the robot(s) or automation executor 106.

[0024] The user-mode Robot Service may manage and monitor Windows sessions and act as a proxy between the conductor 104 and the execution host. The user-mode Robot Service may be trusted and may manage robot credentials. If the SCM Management Robot Service is not installed, a Windows application may be launched automatically.

[0025] An Executor may run a given job under a Windows session (i.e., execute a workflow). An Executor may be aware of per-monitor dots-per-inch (DPI) settings. An Agent may be a Windows Presentation Foundation (WPF) application that displays available jobs in a system tray window. An Agent may be a client of a Service. An Agent may request to start or stop a job or change settings. A Command Line may be a client of a Service. A Command Line is a console application that can request to start a job and wait for its output.

[0026] As described above, a configuration in which the robot(s) or automation executor 106 components are separated helps developers, support users, and computing systems to more easily execute, identify, and track each component. In this manner, special behaviors can be configured for each component, such as setting different firewall rules for executors and services. The executor may be aware of per-monitor DPI settings in some embodiments. As a result, workflows may be executed at any DPI regardless of the configuration of the computing system on which the workflow was generated. Also, projects from the designer 102 may be made independent of the browser zoom level. For applications that are not DPI aware or are intentionally marked as not aware, DPI may be disabled in some embodiments.

[0027] FIG. 1B is another illustration of RPA development, design, operation, or execution 120. A studio component or module 122 may be configured to generate code, instructions, commands, etc. for a robot to perform one or more activities 124. User interface (UI) automation 126 may be performed by the robot on the client using one or more driver(s) components 128. The robot may perform activities using a computer vision (CV) activity module or engine 130. Other drivers 132 may be utilized for UI automation by the robot to obtain elements of the UI. These may include OS drivers, browser drivers, virtual machine drivers, enterprise drivers, etc. In a particular configuration, the CV activity module or engine 130 may be a driver used for UI automation.

[0028] FIG. 1C is an illustration of a computing system or environment 140 that may include a bus 142 or other communication mechanism for communicating information or data and one or more processor(s) 144 coupled to the bus 142 for processing. The one or more processor(s) 144 may be any type of general or special purpose processor, including a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a graphics processing unit (GPU), a controller, a multi-core processing unit, a three-dimensional processor, a quantum computing device, or any combination thereof. The one or more processor(s) 144 may also have multiple processing cores, at least some of which may be configured to perform a specific function. Also, multi-parallel processing may be configured. Additionally, at least one or more processor(s) 144 may be a neuromorphic circuit that includes processing elements that mimic biological neurons.

[0029] The memory 146 may be configured to store information, instructions, commands, or data to be executed or processed by the processor(s) 144. The memory 146 may be comprised of any combination of random access memory (RAM), read-only memory (ROM), flash memory, solid-state memory, cache, static storage devices such as magnetic or optical disks, or any other type of non-transitory readable medium, or any combination thereof. The non-transitory readable medium may be any medium accessible by the processor(s) 144 and may include volatile media, non-volatile media, etc. Also, the medium may be removable, non-removable, etc.

[0030] The communication device 148 may be a radio communication system that supports a variety of radio communication technologies, including Frequency Division Multiple Access (FDMA), Single Carrier FDMA (SC-FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), Orthogonal Frequency Division Multiple Access (OFDM), Global System for Mobile (GSM) communications, General Packet Radio Service (GPRS), Universal Mobile Telecommunications System (UMTS), cdma2000, Wideband CDMA (W-CDMA), High Speed ​​Downlink Packet Access (HSDPA), High Speed ​​Uplink Packet Access (HSUPA), High Speed ​​Packet Access (HSPA), Long Term Evolution (LTE), LTE Advanced (LTE-A), and the like. The antenna may be configured as a 802.11x, Wi-Fi, Zigbee, Ultra-Wideband (UWB), 802.16x, 802.15, Home Node-B (HnB), Bluetooth, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Near-Field Communications (NFC), 5th Generation (5G), New Radio (NR), or any other wireless or wired device / transceiver for communicating via one or more antennas. The antennas may be singular, arrayed, phased, switched, beamforming, beam-steered, etc.

[0031] The one or more processor(s) 144 may further be coupled via bus 142 to a display device 150, such as a plasma, liquid crystal display (LCD), light emitting diode (LED), field emission display (FED), organic light emitting diode (OLED), flexible OLED, flexible substrate display, projection display, 4K display, high definition (HD) display, Retina (copyright) display, in-plane switching (IPS) or such based display. The display device 150 may be configured as touch, three dimensional (3D) touch, multi-input touch, or multi-touch display using resistive, capacitive, surface acoustic wave (SAW) capacitive, infrared, optical imaging, dispersive signal technology, acoustic pulse recognition, frustrated total internal reflection, etc., for input / output (I / O), as will be appreciated by those skilled in the art.

[0032] A keyboard 152 and controllers 154, such as a computer mouse, touch pad, etc., may further be coupled to bus 142 for providing input to computing system or environment 140. Additionally, input may be provided to computing system or environment 140 remotely via another computing system in communication with computing system or environment 140, or computing system or environment 140 may operate autonomously.

[0033] The memory 146 may store software components, modules, engines, etc. that provide functionality when executed or processed by the one or more processor(s) 144. This may include an OS 156 for the computing system or environment 140. The modules may further include custom modules 158 for executing application-specific processes or derivatives thereof. The computing system or environment 140 may include one or more additional functional modules 160 that include additional functionality.

[0034] The computing system or environment 140 may be adapted or configured to perform as a server, an embedded computing system, a personal computer, a console, a personal digital assistant (PDA), a mobile phone, a tablet computing device, a quantum computing device, a cloud computing device, a mobile device, a fixed mobile device, a smart display, a wearable computer, etc.

[0035] In the examples described herein, the modules may be implemented as hardware circuitry comprising custom very large scale integrated (VLSI) circuits or gate arrays, off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, graphics processing units, etc.

[0036] The modules may be implemented at least partially in software for execution by various types of processors. An identified unit of executable code may comprise one or more physical or logical blocks of computer instructions that may be organized as, for example, an object, a procedure, a routine, a subroutine, or a function. The executables of the identified modules may be co-located or stored in different locations such that when logically combined they constitute a module.

[0037] A module of executable code may be a single instruction, one or more data structures, one or more data sets, multiple instructions, etc., and may be distributed across different code segments, different programs, across multiple memory devices, etc. Operational or functional data is identified and illustrated herein in modules, and may be embodied and organized in any suitable manner within any suitable type of data structure.

[0038] In the examples described herein, the computer programs may be implemented in hardware, software, or a hybrid implementation. The computer programs may be implemented in modules that are in operative communication with each other to pass information or instructions.

[0039] FIG. 2 is an illustration of discovering, mining, or identifying process sequences or patterns 200. Recorder or collector applications, applets, data structures, software components, etc. may be downloaded directly or indirectly from a service provider or central administration (1). The recorder or collector may transparently and non-intrusively monitor activity on enterprise applications, enterprise platforms, virtual machines (VMs), remote desktops, desktop applications, mobile applications, etc. The recording or collection may be performed for subsequent RPA automation by one or more robots operated by an orchestrator or similar component.

[0040] The recorder or collector may be configured or arranged such that existing implementations require minimal redesign. The recorder or collector may operate partially in a central, distributed, non-central, or cloud-based location, etc. Telemetry input(s) or data may also be utilized by the recorder or collector for sequencing, as described herein. Telemetry, as well as other data streams from the recorder or collector, may be used as additional data points to cluster or define actions, states, sequences, or processes. Telemetry may also provide useful feedback regarding product or application usage, which may enable substantially real-time recommendations, suggestions, etc. In certain configurations described herein, continuous model improvement may be configured to build a standardized functionality library based on one or more automatically generated workflows.

[0041] A user of one or more users 202 or a manual input source may be configured or utilized to select at least one of the multiple groups to capture group (2) activity or data. In certain configurations, groups may be formed based on performance of similar tasks. Additionally, the captured activity or data may be encrypted, compressed, secured, etc. The captured activity or group data may be stored in a log or record file. Sources of captured data may include videos, screenshots, screenshots with time stamps, metadata files, databases, etc.

[0042] The log file may include one or more screenshots, screenshots per customer, tree data, domain object model (DOM) tree data, UI elements, one or more selectors, action types, clipboard content, user computing activity, etc. The log or record files may be uploaded for centralized analysis, cloud analysis, etc. The analysis may display the progress of the process. Additionally, similar or common actions in the log or record files may be identified to generate a new version of the log or record file that includes sequences of actions represented as clusters, groups, etc.

[0043] The log or record file may include screenshots, tree data, or selectors that are noisy, dynamic, or variable, which may be non-obvious to identify or distinguish two or more actions as similar or the same. Identification of similar UI elements may be done by vectorization, selection, and use of optical character recognition (OCR). For OCR, a time-shared many-to-many search algorithm may be used to label the recurring process based on the OCR of one or more screenshots, UI elements, etc. In certain configurations, categorical hidden Markov models may be utilized for identification of sub-processes with autoregressive components, and dendograms may be utilized to address erroneous selector variation.

[0044] In certain configurations, log files containing automation layer information and screenshots containing all applicable metadata may be clustered using various dynamic techniques to represent unknown data in a form suitable for representing intelligent actions, states, or sequences. For example, Bayesian and probabilistic modeling and heuristic processes may be configured to identify optimal or desired clusters for correct sequence representation.

[0045] Sequence or pattern extraction for RPA can be modified to recognize short and meaningless sequences that occur frequently. Process discovery or mining can be configured to identify processes, predictable actions, repeatable actions, sequences of identifiable actions, etc. based on log or record files. Process mining can also identify processes that are high impact relative to the cost of automation or RPA. In certain configurations, this can be accomplished without or with limited access to known schemas and proprietary information technology (IT) systems or network configurations.

[0046] Visualizations can be configured for process understanding or building workflows for RPA automation. For example, custom visualizations can be configured to vary distance thresholds to obtain predictable filtering results. Visualizations generated with TimelinePI can also be utilized in the examples described herein for automated generation of workflows and understanding of processes. In certain configurations, where distinctions between rule-based decisions, judgment-based decisions, time decisions, or process decisions, etc., are of lower priority, a query system of record (SOR) can be utilized for workflow building for RPA automation.

[0047] In certain configurations, workflows may be automatically configured by deriving implicit decision criteria. This procedure may significantly reduce the implementation cost of RPA and provide better outcomes. Once implemented, the automated workflow may reduce the cost of redesigning the robot. Also, in the examples described herein, distinct processes and state transitions may be discovered, mined, captured, etc., using sequences or pattern extraction for RPA, utilizing standards, functional techniques, logical components, etc. This may be achieved with reduced manual input.

[0048] In certain configurations, the log or record files may include screenshots, customer specific screenshots, tree data, data selectors, activity selectors, action types, clipboard contents, etc. Sequence or pattern generation may be configured to identify actions, generate human readable labels for actions, action motivations, process changes, process start states, process end states, process performance times, etc. States may include new customer available for registration, record updated, confirm changes, error states, computer UI elements such as send, open, acknowledge, Win32 UI automation, etc.

[0049] In certain configurations, identifying process sequences or patterns for automation may utilize configurations that use recorders or collectors to capture detailed processes of enterprise applications, enterprise platforms, VMs, remote desktops, desktop applications, mobile applications, etc. Sequence models may be configured to discover distinct processes and state transitions. Sequence models may distinguish between meaningful and irrelevant variations, decision actions, rule-based actions, etc. In certain configurations, sequence processing may be performed as part of a mining operation.

[0050] The hierarchy may be generated based on the discovered or mined distinct processes and state transitions. The hierarchy may be represented with page objects for different levels of abstraction, functional approaches, or actionability. The page objects may be code objects such as submit button, login, close window, minimize window, etc. The discovered actions may be written based on these code objects and searched together. This configuration may generate test automation scripts for the discovered tasks and processes or the current state tasks and processes. In a particular configuration, the hierarchy may be an exponentially decaying hierarchy with overlap between functional clusters, flat clusters (fclusters), etc. The hierarchy may also include manually labeled process iterations based on optimal cluster lengths.

[0051] The discovered distinct processes and state transitions may also be generated for visual validation (3). Visual validation may utilize additional manual input or robotic actions. The discovered distinct processes and state transitions may be ranked based on importance, priority, value, etc. for RPA automation (4). Ranking may include determining the top X sequences, ranking by p-value, ranking by entropy, etc.

[0052] A p-value may be utilized to determine the significance of the results of a hypothesis test or claim. The claim may represent the null hypothesis. The alternative hypothesis may be the outcome if the null hypothesis turns out to be false or not true. A p-value is between 0 and 1, and a small p-value may indicate strong evidence against or a rejection of the null hypothesis. A large p-value may indicate weak evidence against or a failure to reject the null hypothesis.

[0053] In sequence ranking statistics, extracted sequences may be ranked by their p-values, but the ranking may be augmented with many other statistics or parameters. The entropy of the prefixes and suffixes of a sequence may be a desirable statistical parameter to quantify the uncertainty of the next or previous action for a sequence. For example, if the uncertainty or entropy of the next or previous action is low, it may be more appropriate to extend the sequence to include the most frequent next or previous action. In another configuration, if the entropy of a subsequent step is substantially zero, meaning it is always the same action, the sequence may be extended to include that action. The entropy in sequence ranking may be configured by sorting the sequence based on the product of the p-value and the entropy. In a particular configuration, the entropy may be the sum of the entropies of the prefixes and suffixes.

[0054] Process intelligence (5) through further validation or redesign of the generated workflow may be configured. In the example described herein, the process design or redesign may be configured to utilize a flexible process design document (PDD) for export 204 of the workflow and RPA (6). The export may include robot configuration details, operational variables, operational parameters, troubleshooting, etc. to assist or implement RPA.

[0055] FIG. 3 is an illustration of analyzing the randomness of a log or record file for extraction of sequences or patterns 300. Extraction of sequences or patterns may be configured to compare sequences of actions appearing in new versions of the log or record files. In certain configurations, the comparison may include determining the randomness of the sequences or patterns (302), and the least random may be selected or chosen as candidates for actionable or valuable tasks. The candidate actions may be ranked (304) based on randomness or another metric, as desired. Subsets, subgroups, subsections, etc. of the candidates may be labeled. Subsets, subgroups, subsections, etc. (306) of the candidate actions may represent individual candidates or classes. Candidates may be sequences or subsequences that are being tested for significance, alone or together with others, to be a discovered process. An exhaustive process may be configured to test all candidates, permutations, combinations, etc. whose frequency exceeds an X cut. One version of the log file may be labeled (308) with the individual sequences or patterns of extraction. In certain configurations, the sequences may be ranked by quality, importance, relevance, and the like.

[0056] As a result of the extraction of sequences or patterns, actions may be identified with associated human readable or identifiable labels. Other results of the configurations described herein may include reasons for actions taken, including process variations, determination of different actions for similar or the same processes, start and end states of each process, process duration, etc.

[0057] FIG. 4 is an illustration of sequence or pattern extraction by clustering actions for sequence identification for extraction in a log or record file 400. In a particular configuration, sequence or pattern extraction may be formed by clustering rows or columns of actions for sequence identification followed by extraction performed on the log or record file of action_clusters (402). Subsequences, subpatterns, etc. that appeared more than X times in the log may be identified (404). The subsequences or subpatterns may be ordered based on the likelihood of the sequence or pattern occurring more than expected as determined by or based on randomizing the log file (406). In other configurations, the subsequences, subpatterns, etc. may also be ordered based on the likelihood of the sequence or pattern occurring more than a predetermined number of times if the log were random. A workflow is generated from one or more clusters for robotic automation (408).

[0058] In certain configurations, a statistical model of the cluster index (cluster_indices) may be utilized to randomize each row or column, making the probability of each action equal to its frequency in the log or record file. Sequence instances may be extracted and represented using a data structure such as a patricia trie for fast lookup. A patricia trie may be a variant of a radix-2 or binary trie, where rather than explicitly storing each bit of each key, a node may store the position of the first bit that distinguishes between two subtrees. During a search, the index bits of the search key may be examined and the left or right subtree may be selected.

[0059] In a statistical sequence or pattern model for process understanding, frequent sequences from one or more log or record files may be extracted based on one or more application parameters. Data mining for the extraction of frequent sequences, such as PrefixSpan, may result in some undesirable results, especially short frequent sequences may be given low priority. Certain configurations may utilize statistical models of sequences to find the most statistically relevant sequences other than the most frequent. For example, a random sequence model configuration may assume that each line in the log is an independent random action that is uncorrelated with previous or subsequent actions.

[0060] In the random sequence model construction, the probability of each action can be modeled using their frequency in a log or record file. For example, log L = r0,r1,r2,...,r_N For , action a_i may be assigned a probability P[a_i] = |{i:r_i == a_i}| / N, i.e., the proportion of logs represented by this action. Multiple or all subsequences of logs may be ranked or sorted by probability of occurrence using p-values, randomization, etc. In certain configurations, the model with p-values ​​may be based on the null hypothesis and randomized logs. In certain configurations, sequences that occur more frequently or greater than a predefined amount compared to random trials may be selected or may imply statistical significance.

[0061] In certain models, the focus may be on calculating the probability that a sequence S of length l will appear n times in a log or record file of length N, given some probability. Correspondingly, an approximation by exact sequence matching may be performed, where sequences are extracted and ranked based on exact matches in the sequence. In certain configurations, an exact sequence may be a sequence S that appears exactly in the log or record that occurs without substantial lags, gaps, etc. In this configuration, the approximation may be performed by modeling as a sequence of N / l Bernoulli trials, where the probability of each trial is given by the prior probability that any sequence of length l is equal to S.

[0062] Approximations can also be performed for sequences with lags, or pattern matches with lags, gaps, etc. If a sequence is S X = s_0,s_1,s_2 If a log or record contains a sequence [s_0,s_1,R,s_2], where R is any action, then this is a sequence of S X In certain configurations, S X may be specified with decreasing weights due to lags, gaps, etc.

[0063] Following extraction of sequences or patterns, denoising may be performed by finding an alignment of the logs or records with the top sequences that optimizes an objective function, such as minimizing the p-value. In this configuration, rows of the original logs or records will be ignored. Optimizing the objective function may reduce the probability of a random chance of ignoring a row or column in the log or record while preserving the row or column in the sequence.

[0064] The denoised log or record file may contain the original elements or a portion of the original log. For efficient optimization, recursive or hierarchical extraction may be performed. Recursion may be performed by iteratively extracting and denoising on an existing denoised log or record. This operation may clean or improve the log or record at the expense of removing some of the signal as well as the noise in the data. In this configuration, it may be difficult to quantify or approximate the missing signal portion of the data.

[0065] Extraction of hierarchical sequences or patterns may be performed by constructing tiled log or record files. In certain configurations, the tiled log or record files may contain sequences of sequence identity that are used to tile and form denoised logs or records. The logs of extracted sequences that may be significant may be tiled to find instances of sequences in the log itself. This operation may also be performed to denoise the logs by keeping parts of the logs that may be covered by significant sequences. Hierarchical extraction may include repeated extraction, denoising and recursion on the tiled logs. Extraction of hierarchical sequences or patterns may squash the tiled logs such that repeated sequences or patterns of actions are reduced to a single action or sequence instance. For example, squashing may reduce (1,1,1,2,2,3,2,1,1) to (1,2,3,2,1). One squashing algorithm may include preserving sequences with a tiling algorithm and generating denoised logs for the final level of recursion. This sequence or pattern extraction may be suitable for less noisy data.

[0066] The sequence or pattern extraction may be repeated to determine the hierarchical flow of tasks, actions, etc. The actions described using the hierarchical flow representation may result in multiple levels of abstraction based on keywords and obfuscated versions of screenshots. The discovered flows may be prioritized for RPA.

[0067] In certain configurations, sequence or pattern extraction may check occurrences in a log file or record file based on the type and frequency of actions. Actions that occurred over a period of time may be labeled, characterized, differentiated, etc. The set of subsequent actions may be predefined, set, user-defined, etc. A statistical model may select actions that occur after an action with the least random distribution of occurrences and associate the actions as one or more sequences. This operation may be repeated to assemble or build longer sequences or patterns. This sequence or pattern extraction may be desirable for data with more noise and more randomness.

[0068] Discovering, mining, or identifying distinct processes and state transitions using sequence or pattern extraction may be desirable for small and medium-sized enterprises (SMEs), centers of excellence (COEs), single users, business analytics (BA), RPA development, etc. Also, SMEs may save time in documenting and explaining current processes and policies. Improved privacy and sharing control may also be achieved by elimination of manual input. Improved privacy and sharing control may also be achieved by local operation and configuration of process understanding.

[0069] The implementation of a BA or COE can bring benefits such as faster prioritization of RPA processes or tasks, cost reduction by documenting human work, risk reduction by automating complex tasks that are often assigned to less experienced users, or improved compliance with organizational policies by improving the documentation process. Also, automatic generation of PDDs and draft workflows can accelerate RPA development. Reduced code maintenance time due to standardized hierarchies can be another desired outcome.

[0070] In certain configurations, the auto-generated workflow may be tracked post-deployment to enhance or improve the Extensible Application Markup Language (XAML) export. During sequencing, with multiple good output candidates for a task or even an entire complex workflow, the initial execution function may be configured to test live performance, request manual input, suggest a smaller list of choices, suggest next steps, perform reasoning validation, etc.

[0071] Referring again to tiling of logs or records, an exact match operation may be constructed as follows: The sequences or patterns may be sorted by length, e.g., from longest to shortest. At the beginning of each log or record, a search may be performed for the longest sequence that matches the log starting from the current log position. Once the longest matching sequence is found, the operation may move to the point in the log that is just at the end of the found sequence and repeat until substantially the entire log is completed.

[0072] In density-based operations, the instances of sequences with the highest p-value density may be used to tile the log or file. Dense log or file tiling may tolerate lags, such as one or more extra actions that may occur within a sequence instance. All instances of each sequence, with or without lags, may be found and sorted by p-value density. In certain configurations, the p-value density may be the ratio of the sequence p-value to the total length of the sequence instance. Each instance starting with the one with the highest p-value density may be selected and included in the tiling. This may be done if the sequence instance contains at least one line of the log that is not included in an already used sequence instance and the sequence does not share its starting line with any other already used sequence instance. In certain configurations, density log or file tiling may result in two sequences overlapping sequence instances without completely overlapping, or two sequences may start in the same place but with different numbers of lags, gaps, etc. Sequence overlap may be desirable to discover fragments of overlapping processes, and a true process may be the concatenation of two or more sequences.

[0073] Lag-based tiling may be desirable in certain configurations. Lag-based tiling may allow lags and disallow overlapping sequences. One may process a line of logs one by one and find or discover the lagged sequence with the highest p-value density starting at a given position. Once a sequence is selected, the process may move to the next line of the log after the sequence instance is finished.

[0074] In the examples described herein, one or more logs or records having screenshots, UI elements, selectors, etc. for action identification may be noisy and dynamic to point out that two actions may appear similar or the same. Vectorization, use of selectors, or use of an OCR engine may be utilized to determine interactions with the same selector, UI element, etc. Vectorization may specify that two selectors are similar if they are close on the graph of the DOM tree. A set of notable tags such as "name", "role", etc. may be defined, and each line of the log may be assigned a label using the tags of the first and last selector elements. Rows with other lines having substantially identical labels may be clustered. In certain configurations, clusters with fewer than the min_samples member, a parameter specified at runtime or determined automatically without manual input, may be considered noise.

[0075] Identifying actions using selectors may cluster rows based on the correlation of words in one or more selectors. A set of all words or alphanumeric strings may be formed with the first and last selector elements, and may be arbitrarily or randomly ordered to the word w_i. Rows of the log or record may be represented as vectors, with the i-th element of the vector being 1 if this row selector contains w_i, and 0 otherwise. Principal component analysis (PCA) may be performed on these vectors. In a particular configuration, the PCA may be configured to preserve 90% of the overall variance. Clustering may be performed on these vectors using k-means, where a range of clusters is tried. Clusters may be selected that maximize an unsupervised metric of cluster quality, such as based on silhouette scores. Also, density-based spatial clustering of applications (DBSCAN) clustering may be configured using parameters determined by the final k-means clustering.

[0076] Additionally, OCR action identification may be performed similarly to selector-based identification, but may generate vectors using words or alphanumeric strings in the OCR output rather than on selector elements. In certain configurations, using words or alphanumeric strings in the OCR output to generate vectors may be referred to as action clusters. In this configuration, a 100k line log may generate between 100 and 1000 unique actions, depending on the min_samples setting.

[0077] FIG. 5 is an illustration of sequence or pattern extraction for process understanding 500. In this configuration, sequence or pattern extraction may include 1) extraction, 2) denoising, 3) recursion, and 4) hierarchical extraction, as shown below. After rows are clustered to identify actions, sequence or pattern extraction (502) may be performed on the action_clusters log or records. One or all subsequences that appear in the log more than cut X times may be identified. A single cut may be sufficient. Subsequences may be ordered based on the likelihood of occurrence at a given time in a random log. A statistical model for cluster indexes (cluster_indices) may be used where each row is random and the probability of each action is equal to its frequency in the log. Sequence instances may be extracted and represented using a Patricia trie data structure.

[0078] Denoising may be performed on the extracted sequence by finding an alignment of the log and the top sequence that minimizes a p-value that allows one or more rows in the sequence to be ignored while ignoring one or more rows in the original log. Minimizing the p-value of the log may include making it unlikely to have occurred randomly. Log tiling or approximation may be performed to optimise denoising. Recursion may be used in certain configurations by re-running extraction and denoising on previously denoised logs.

[0079] Hierarchical sequence extraction (506) may be performed for sequence extraction by constructing a tiled log. In certain configurations, recursion may be utilized for hierarchical sequence extraction. The tiled log may be a sequence of sequence identities used to tile and form the denoised log in step 3). Hierarchical sequence extraction may be configured to iterate steps 1)-3) on the tiled log. Squashing may also be performed on the tiled log or records by reducing sequences of repeated actions to a single action, a smaller number of actions, sequence instances, etc. Hierarchical sequence extraction may be configured to preserve sequences used in the tiling configuration to generate the denoised log for a final recursion.

[0080] FIG. 6 is an illustration of automated sequence or pattern extraction for process understanding and workflow automation for process automation by a robot 600. Steps of a manual workflow of an application may be captured, recorded, collected, etc. (602). The captured steps may be saved in a log file or record file. A sequencing model of the captured manual workflow may be determined or selected (604). The sequencing model may include a plurality of different processes and state transitions of the captured manual workflow. Based on the sequencing model, variations, decision actions, or rule-based actions of the plurality of different processes and state transitions may be identified (606). The variations may be based on changes in a log file of actions associated with the captured steps. Based on the identified variations, decision actions, or rule-based actions, a hierarchy may be generated (608). An automated workflow is automatically designed or redesigned based on the generated hierarchy and exported (610) for process automation by the robot(s).

[0081] Although the features and elements are described above in a particular combination, those skilled in the art will understand that each feature or element can be used alone or in any combination with other features and elements. Furthermore, the methods described herein can be implemented in a computer program, software, or firmware embodied in a computer-readable medium for execution by a computer or processor. Examples of computer-readable media include electronic signals (transmitted via wired or wireless connections) and computer-readable storage media. Examples of computer-readable storage media include, but are not limited to, read-only memory (ROM), random access memory (RAM), registers, cache memory, semiconductor storage devices, magnetic media such as internal hard disks and removable disks, magneto-optical media, and optical media such as CD-ROM disks and digital versatile disks (DVDs).

Claims

1. 1. A computing device comprising: A processor; A memory, the processor is configured to retrieve captured steps of a workflow of an application from the memory and utilize a sequence model for the captured steps; the sequence model determines a plurality of processes and state transitions for the captured steps; the processor is configured to identify at least one of variations of the plurality of processes and state transitions, decision actions, or rule-based actions based on changes in the sequence model and action log files associated with the captured steps; the processor is configured to generate a hierarchy based on the identified variations, the decision actions, or the rule-based actions; the hierarchy is an exponentially decaying hierarchy with overlap between functional and flat clusters; the processor is configured to automatically generate an automated workflow based on the generated hierarchy for robotic process automation; the processor controls the process automation based on the automatically generated automation workflow. Computing device.

2. The computing device of claim 1 , wherein the sequence model identifies subsequences or subpatterns that occur more than a predetermined number of times in a string.

3. The computing device of claim 1 , wherein the captured steps are randomized and the sequence model identifies processes that occur more than a predetermined number of times.

4. The computing device of claim 1 , wherein telemetry data is utilized by the sequence model.

5. The computing device of claim 1 , wherein the variations, the decision actions, or the rule-based actions are visualized for cross-checking.

6. The computing device of claim 1 , wherein each identified process of the plurality of processes is labeled.

7. The computing device of claim 1 , wherein the action comprises one of a screenshot, tree data, Domain Object Model (DOM) data, a user interface element, a selector, an action type, clipboard contents, or a computing activity.

8. The computing device of claim 7 , wherein the actions are arranged into clustered rows based on repetition or ranking.

9. 1. A method performed by a computing device, the method comprising: obtaining captured steps of a workflow of an application and utilizing a sequence model for the captured steps, the sequence model determining a number of processes and state transitions for the captured steps; identifying at least one of variations of the plurality of processes and state transitions, decision actions, or rule-based actions based on changes in the sequence model and action log files associated with the captured steps; generating a hierarchy based on the identified variations, the decision actions, or the rule-based actions; and automatically generating an automated workflow based on the generated hierarchy for robotic process automation; the hierarchy is an exponentially decaying hierarchy with overlap between functional and flat clusters; a processor for controlling the process automation based on the automatically generated automation workflow. method.

10. The method of claim 9 , wherein the sequence model identifies subsequences or subpatterns that occur more than a predetermined number of times in a sequence.

11. The method of claim 9 , wherein the captured steps are randomized and the sequence model identifies processes that occur more than a predetermined number of times.

12. The method of claim 9 , wherein telemetry data is utilized by the sequence model.

13. The method of claim 9 , wherein the variations, the decision actions, or the rule-based actions are visualized for cross-checking.

14. The method of claim 9 , wherein each identified process of the plurality of processes is labeled.

15. 10. The method of claim 9, wherein the action comprises one of a screenshot, tree data, Domain Object Model (DOM) data, a user interface element, a selector, an action type, clipboard contents, or a computing activity.

16. The method of claim 15 , wherein the actions are arranged into clustered rows based on repetition or ranking.

17. 1. A computing device comprising: A processor; A memory, The processor is configured to retrieve captured steps of a workflow of an application from the memory and utilize a sequence model for the captured steps, the sequence model determining state transitions for the captured steps; the processor is configured to identify variations in the state transitions based on changes in the sequence model and a log file of actions associated with the captured steps; The processor is configured to generate a hierarchy based on the identified variations; the hierarchy is an exponentially decaying hierarchy with overlap between functional and flat clusters; the processor is configured to automatically generate an automated workflow based on the generated hierarchy; the processor controls process automation based on the automatically generated automation workflow. Computing device.

18. The computing device of claim 17 , wherein the sequence model identifies subsequences or subpatterns that occur more than a predetermined number of times in a string.

19. 20. The computing device of claim 17, wherein the captured steps are randomized and the sequence model identifies processes that occur more than a predetermined number of times.

20. The computing device of claim 17 , wherein telemetry data is utilized by the sequence model.

Citation Information

Patent Citations

  • Automatic software production system

    JP2009193592A

  • Transformation of a modular finite-state transducer

    JP2010503934A

  • Screen operation support function system

    JP2013073428A

  • State machine builder equipped with improved interface and processing of state independent event

    JP2017142798A