Method, apparatus, computer program and computer-readable medium for training an RPA robot
By training RPA robots with video analysis of human interactions, the inefficiencies and errors in manual GUI element identification are overcome, allowing automated and scalable RPA operations across systems.
Patent Information
- Application Number
- JP2022566618
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-05-01
- Publication Date
- 2024-08-26
- Estimated Expiration
- 2040-05-01
AI Technical Summary
Training robotic process automation (RPA) robots to perform tasks through graphical user interfaces (GUIs) is cumbersome, requiring human operators to manually identify GUI elements and build workflows, which is inefficient and prone to errors.
An RPA robot is trained using video analysis of a human operator interacting with a GUI, capturing sequences of events and GUI elements to generate a workflow, utilizing machine learning algorithms to identify interactive elements and events, allowing the robot to autonomously perform tasks.
Automates the training process, reducing human intervention and error, enabling scalable and reproducible RPA robot operations across multiple systems without manual GUI interaction identification.
Smart Images

Figure 0007540003000001 
Figure 0007540003000006 
Figure 0007540003000007
Abstract
Description
[Technical field]
[0001] The present invention relates to systems and methods for robotic process automation, and more particularly to automated training of robots for robotic process automation. [Background technology]
[0002] Human-guided computer processes are ubiquitous across many fields of technology and endeavor. Modern graphical user interfaces (GUIs) have proven invaluable in enabling human operators to use computer systems to perform often complex data processing and / or system control tasks. However, while GUIs often allow human operators to quickly become familiar with performing new tasks, GUIs often present a high barrier to any further automation of the task.
[0003] Traditional workflow automation aims to take tasks that are typically performed by an operator using a GUI and automate them so that a computer system can perform the same tasks without significant redesign of the underlying software used to perform the tasks. Initially, this required exposing the software's Application Programming Interface (API) so that scripts could be manually devised to execute the necessary functions of the software to perform the required tasks.
[0004] Robotic Process Automation (RPA) systems represent an evolution of this approach, using software agents (called RPA robots) to interact with computer systems through existing Graphical User Interfaces (GUIs). The RPA robots can generate appropriate input commands for the GUI to cause a given process to be executed by the computer system. This allows for the automation of the process, making the enlisted process unattended. The advantages of such an approach are numerous, including greater scalability, allowing multiple RPA robots to execute the same task across multiple computer systems, and greater repeatability, as the chances of human error in a given process are reduced or eliminated.
[0005] However, the process of training an RPA robot to perform a particular task can be cumbersome and requires a human operator to use the RPA system itself to program it in a particular process that specifically identifies each individual step using the RPA system, and also requires the human operator to identify the specific parts of the GUI that should be interacted with and build a workflow for the RPA robot to use. Summary of the Invention
[0006] The present invention provides a method for training an RPA robot to perform a task using a GUI based solely on analysis of a video of an operator using the GUI and events (or inputs) triggered by the operator when executing a process. In this way, the above-mentioned problems of the prior art for training an RPA robot can be avoided.
[0007] In a first aspect, a method for training an RPA robot (or script or system) to use a GUI is provided. The method includes the steps of capturing a video of the GUI when an operator (or user) uses the GUI to execute a process (or task); capturing a sequence of events triggered when the operator uses the GUI to execute said process, and analyzing said video and said sequence of events to generate a workflow. The workflow, when executed by the RPA robot, causes the RPA robot to execute said process using the GUI. The capturing step can be performed by a remote desktop system.
[0008] The analyzing step may further include identifying one or more interactive elements of a GUI from the video and matching at least one of the events in the sequence of events as corresponding to at least one of the interactive elements. An interactive element may be any typical GUI element, such as, but not limited to, a text box, a button, a context menu, a tab, a radio button (or an array thereof), a check box (or an array thereof), etc. Identifying the interactive element may be performed by applying a trained machine learning algorithm to at least a portion of the video.
[0009] Identifying the interactive element may include identifying a location of one or more anchor elements in the GUI relative to the interactive element. For example, a machine learning algorithm (such as a graph neural network) may be used to identify the one or more anchor elements based on one or more predefined feature values. The feature values may also be determined via training of a machine learning algorithm.
[0010] The feature values may include any one or more of the following: the distance between elements, the orientation of the elements, and whether the elements are within the same window.
[0011] The sequence of events may include any one or more of the following: key press events, click events (e.g., single clicks or multiples thereof), drag events, and gesture events. Video-based inferred events (such as hover events) may also be included in the sequence of events. Typically, a hover event may be inferred based on one or more interface elements that become visible in the GUI.
[0012] The analyzing step may further include identifying a sequence of sub-processes of the process in which a process output of one of the sub-processes of the sequence may be used by the RPA robot as a process input to another sub-process of the sequence.
[0013] The generated workflow can be edited by a user to allow inclusion of a portion of a previously generated workflow that corresponds to an alternative sub-process, such that when the edited workflow is executed by an RPA robot, it causes the RPA robot to perform a version of the process using a GUI, where the process version includes the alternative sub-process, where the version of the process includes the alternative sub-process in place of an existing sub-process of the process.
[0014] In a second aspect, there is provided a method of executing a process using a GUI using an RPA robot trained by the method according to the first aspect above. In particular, the method may include the RPA robot re-identifying one or more interactive elements in the GUI based on respective anchor elements specified in the workflow. A machine learning algorithm (such as a graph neural network) may be used to re-identify the one or more interactive elements based on one or more pre-defined feature values (such as determined as part of the method of the first aspect).
[0015] Systems and devices configured to perform any of the above methods are also provided. For example, a system for training an RPA robot (or script or system) to use a GUI is provided. The system is configured to capture a video of the GUI when an operator (or user) uses the GUI to perform a process (or task) and capture a sequence of events that are triggered when the operator uses the GUI to perform said process. The system further comprises a workflow generation module configured to analyze the video and the sequence of events, thereby generating a workflow.
[0016] The invention also provides one or more computer programs suitable for execution by one or more processors, such computer programs being configured to perform the methods outlined above and described herein. The invention also provides one or more computer-readable media containing (or having stored thereon) such one or more computer programs, and / or a data signal carried over a network. [Brief description of the drawings]
[0017] Embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which: [Figure 1] Schematically illustrates an example computer system; [Diagram 2] Schematically shows a system for robotic process automation (RPA); [Figure 3a] 1 is a flow chart that generally illustrates an exemplary method for training an RPA robot; [Figure 3b] FIG. 2 is a flow diagram that generally illustrates an exemplary method of an RPA robot of an RPA system executing a workflow to perform a process; [Figure 4] 3 illustrates generally an exemplary workflow analysis module of an RPA system, such as the RPA system of FIG. [Diagram 5]FIG. 5 illustrates generally a computer vision module as may be used with the RPA system of FIGS. 2 and 4; [Figure 6] FIG. 5 illustrates generally an action identification module as may be used with the RPA system of FIGS. 2 and 4; [Figure 7] Schematically illustrates an example workflow and an edited version of the workflow; [Figure 8] 3 illustrates a schematic diagram of an example execution module of an RPA system, such as the RPA system described in FIG. [Figure 9a] Showing images from the video in GUI; [Figure 9b] 13 shows further images from a video of the GUI that has undergone the re-identification process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] In the following description and drawings, specific embodiments of the present invention are described. It will be understood, however, that the present invention is not limited to the described embodiments, and that some embodiments may not include all of the features described below. However, it will be apparent that various modifications and changes can be made herein without departing from the broader spirit and scope of the present invention as set forth in the appended claims.
[0019] 1 illustrates generally an example of a computer system 100. System 100 includes a computer 102. Computer 102 includes a storage medium 104, a memory 106, a processor 108, an interface 110, a user output interface 112, a user input interface 114, and a network interface 116, all of which are linked together via one or more communications buses 118.
[0020] The storage medium 104 is any form of non-volatile data storage device, such as one or more of a hard disk drive, a magnetic disk, an optical disk, a ROM, etc. The storage medium 104 may store an operating system that the processor 108 executes to cause the computer 102 to function. The storage medium 104 may also store one or more computer programs (or software or instructions or code).
[0021] The memory 106 is any random access memory (storage unit or volatile storage medium) suitable for storing data and / or computer programs (or software or instructions or code).
[0022] The processor 108 may be any data processing unit suitable for executing one or more computer programs (such as those stored in the storage medium 104 and / or memory 106), some of which may be computer programs according to embodiments of the present invention or which, when executed by the processor 108, cause the processor 108 to perform methods according to embodiments of the present invention and configure the system 100 into a system according to embodiments of the present invention. The processor 108 may comprise a single data processing unit or multiple data processing units operating in parallel or in cooperation with each other. The processor 108 may store data in and / or read data from the storage medium 104 and / or memory 106 when performing data processing operations for embodiments of the present invention.
[0023] The interface 110 is any unit external to or removable from the computer 102 for providing an interface to a device 122. The device 122 is one or more of a data storage device, e.g., an optical disk, a magnetic disk, a solid-state storage device, etc. The device 122 may have processing capabilities, e.g., the device may be a smart card. Thus, the interface 110 may access data from, provide data to, or interact with the device 122 according to one or more commands received from the processor 108.
[0024] The user input interface 114 is configured to receive input from a user or operator of the system 100. The user may provide this input via one or more input devices of the system 100, such as a mouse (or other pointing device) 126 and / or a keyboard 124, that are connected to or in communication with the user input interface 114. However, it will be understood that the user may provide input to the computer 102 via one or more additional or alternative input devices (such as a touch screen). The computer 102 may store the input received from the input device via the user input interface 114 in the memory 106 for later access and processing by the processor 108, or may pass it directly to the processor 108 so that the processor 108 can respond to the user input accordingly.
[0025] The user output interface 112 is configured to provide graphical / visual and / or audio output to a user or operator of the system 100. Thus, the processor 108 may be configured to direct the user output interface 112 to form an image / video signal representative of the desired graphical output, and provide this signal to a monitor (or screen or display unit) 120 of the system 100 connected to the user output interface 112. Additionally or alternatively, the processor 108 may be configured to direct the user output interface 112 to form an audio signal representative of the desired audio output, and provide this signal to one or more speakers 121 of the system 100 connected to the user output interface 112.
[0026] Finally, the network interface 116 provides the functionality for the computer 102 to download and / or upload data from one or more data communications networks.
[0027] It will be understood that the architecture of system 100 shown in Figure 1 and described above is merely exemplary, and that other computer systems 100 having different architectures (e.g., having fewer components than those shown in Figure 1 or having additional and / or alternative components than those shown in Figure 1) may be used in embodiments of the invention. By way of example, computer system 100 may include one or more of a personal computer, a server computer, a mobile phone, a tablet, a laptop, a television set, a set-top box, a game console, other mobile or consumer electronics devices, and the like.
[0028] 2 shows a schematic diagram of a system for robotic process automation (RPA). As shown in FIG. 2, there is a computer system 200 (such as the computer system 100 described above) operated by an operator (or user) 201. The computer system 200 is communicatively coupled to an RPA system 230.
[0029] An operator 201 interacts with the computer system 200 to cause the computer system 200 to perform a process (or function or activity). Typically, a process executed on the computer system 200 is performed by one or more applications (or programs or other software). Such programs may be implemented or executed directly on the system 200 or may execute elsewhere (such as on a remote or cloud computing platform) and may be controlled and / or triggered by the computer system 200. The operator 201 interacts with the computer system 200 through a graphical user interface (GUI) 210 that displays one or more interactive elements to the operator 201. The operator 201 may interact with the interactive elements through a user input interface of the computer system 200 (such as the user input interface 114 described above). It will be appreciated that as the operator 201 interacts with the GUI 210 displayed to the operator 201, it will typically change to reflect the operator interaction. For example, when the operator enters text into a text box in the GUI 210, the GUI 210 displays the text entered into the text box. Similarly, when an operator moves a cursor across GUI 210 using a pointing device (such as mouse 126), a pointer is shown moving within GUI 210.
[0030] The RPA system 230 is configured to receive a video 215 of the GUI 210. The video 215 of the GUI 210 shows (or visually depicts or records) the GUI 210 as it appears to the operator 201 as the operator 201 uses the GUI 210 to perform a process. The RPA system 230 is also configured to receive (or capture) a series of events 217 that are triggered in relation to the GUI by the operator who uses the GUI to perform a process. Such events may include individual key presses performed by the operator 201, clicks (or other pointer interaction events) performed by the operator 201, events generated by the GUI itself (such as a click event on a particular element, a change in focus of a particular window within the GUI, etc.).
[0031] The workflow analysis module 240 of the RPA system 230 is configured to analyze the video and event sequence 217 of the GUI 210, thereby generating a workflow (or script) for executing said process using the GUI 210. Workflows are described in more detail below. However, it will be understood that the workflow 250 typically defines a sequence of interactions (or actions) with the GUI 210. An interaction may be an input performed on or in relation to a particular identified element of the GUI, such that when a sequence of interactions is performed on the GUI, the system 200 on which the GUI is operating executes said process. Thus, the workflow 250 can be considered to be (or represent) a set of instructions for executing a process using the GUI.
[0032] The execution module 270 of the RPA system 230 is configured to cause the workflow 250 to execute on the respective GUIs 210-1; 210-2;... of one or more further computer systems 200-1; 200-2;... In particular, the execution module 270 is configured to receive a video of the respective GUIs 210-1; 210-2;... on the further computing systems 200-1; 200-2;... The execution module 270 is also configured to provide inputs 275 to the computer systems 200-1; 200-2;... that emulate the inputs provided by the operator 201. By analyzing the video of the respective GUIs, the execution module can identify (or re-identify) GUI elements present in the workflow 250 and provide inputs to the further GUIs according to the workflow 250. In this way, the execution module can be considered as an RPA robot (or software agent) that operates the system 200-1 via the respective GUIs 210-1 to execute the process. It will be appreciated that the further systems 200-1; 200-2;... may be systems such as system 200, such as computer system 100 described above. Alternatively, one or more of the further computing systems 200-1; 200-2;... may be virtualized computer systems. Multiple instances of the execution module 270 (or RPA robots) may be instantiated in parallel (or substantially in parallel) by the RPA system 230, such that multiple instances of a process may be executed substantially simultaneously on each of the further computing systems 200-1; 200-2;...
[0033] FIG. 3a is a flow chart that generally illustrates an exemplary method 300 for training an RPA robot in accordance with the RPA system 230 of FIG.
[0034] In step 310, as the operator 201 performs an operation using the GUI 210, a video 215 of the GUI 210 is captured.
[0035] In step 320, the sequence of events 217 triggered as the operator 201 uses the GUI 210 to execute the process is captured.
[0036] In step 330, a workflow is generated based on the video 215 and the sequence of events 217. In particular, the video 215 and the sequence of events 217 that are analyzed to generate the workflow, when executed by the RPA robot, cause the RPA robot to execute the process using the GUI. The video 215 and the sequence of events 217 are analyzed using one or more trained machine learning algorithms. Step 330 may include identifying one or more interactive elements of the GUI from the video and matching at least one of the events in the sequence of events as corresponding to at least one of the interactive elements. In this way, step 330 may include identifying a sequence of interactions for the workflow.
[0037] 3b is a flow diagram that generally illustrates an exemplary method 350 of an RPA robot of an RPA system 230 executing a workflow 250 to execute a process. The RPA system 230 may be an RPA system 230 as described above in connection with FIG.
[0038] In step 360, a video of GUI 210-1 on computing system 200-1 is received.
[0039] In step 370, a video of GUI 210-1 on computing system 200-1 is received.
[0040] In step 380, input 275 is provided to computer system 200-1 based on workflow 250. Step 380 may include analyzing the video of the GUI to re-identify GUI elements present in workflow 250 and providing input to the GUI according to workflow 250. In this manner, step 380 may operate further system 200-1 via the GUI to perform a process.
[0041] FIG. 4 illustrates a schematic of an example workflow analysis module of an RPA system, such as RPA system 230 described above in connection with FIG.
[0042] The workflow analysis module 240 shown in Figure 4 includes a video receiver module 410, an event receiver module 420, a computer vision module 430, an action identification module 440, and a workflow generation module 450. Also shown in Figure 4 is an operator 201 who interacts with the computer system 200 via the GUI 210, as described above in connection with Figure 2.
[0043] The video receiver module 410 is configured to receive (or capture, or otherwise obtain) a video 215 of the GUI 210. The video 215 of the GUI 210 is generated on (or by) the computer system 200. The resulting video 215 is then transmitted to the RPA system 230 (and thus to the video receiver module 410) via an appropriate data connection.
[0044] It will be appreciated that the computer system 200 can be connected to the RPA system 230 by a data connection. The data connection can utilize any data communication network suitable for communicating or transferring data between the computer system 200 and the RPA system 230. The data communication network can include one or more of a wide area network, a metropolitan area network, the Internet, a wireless communication network, a wired or cable communication network, a satellite communication network, a telephone network, and the like. The computer system 200 and the RPA system 230 can be configured to communicate with each other over the data communication network via any suitable data communication protocol. For example, when the network data communication includes the Internet, the data communication protocol can be TCP / IP, UDP, SCTP, and the like.
[0045] Similarly, computer system 200 is configured to forward (or otherwise transmit) a visual representation of GUI 210 to video receiver module 410. Video receiver module is configured to generate (or capture) video 215 from the forwarded visual representation of the GUI. Forwarding of visual representations of GUIs is well known and will not be further described herein. Examples of such forwarding include the X11 forwarding system available in the X11 window system, Microsoft Corporation's Remote Desktop Services available in the Windows operating system, etc. Frame buffer type forwarding systems such as those using the Remote Frame Buffer Protocol are also suitable. Examples of such systems include the open source Virtual Network Computing (VNC) and variations thereof.
[0046] Additionally or alternatively, the video receiver module 410 is configured to receive image / video signals generated by the output interface 112. The images / signals are received from hardware devices in an image / signal path between the user output interface 112 of the computer system 200 and the monitor 120 of the computer system 200. The video receiver module 410 is configured to generate (or capture) the video 215 from the received image / video signals.
[0047] It will be appreciated that some of the functionality of the video receiver module 410 may be performed on (or by) the computer system 200. In particular, the computer system 200 may execute software (or a software agent) configured to generate the video 215 of the GUI 210.
[0048] The event receiving module 420 is configured to receive (or capture) a set of events 217 triggered in association with the GUI by an operator using the GUI to perform an operation. The events may be (or may include) inputs to the computer system 200. In particular, the events may include any of a pointer click (such as a mouse pointer), a pointer drag, a pointer movement, a key press (such as via a keyboard or a display-based soft keyboard), a scroll wheel movement, a touch screen (or pad) event (such as a drag or click or gesture), a joystick (or d-pad) movement, and the like.
[0049] It will be appreciated that an event may include more than one input. For example, multiple simultaneous key presses (such as use of control and / or alternate keys, or other modifier keys) may be recorded as a single event. Similarly, inputs grouped within a threshold time (e.g., a double click or triple click) may be recorded as a single event. Events also typically include metadata. Event metadata may include the on-screen pointer (or cursor) position at the time of the event, the key (in the case of a key press), etc.
[0050] Similar to the video receiver module 410, the computer system 200 is configured to forward (or otherwise transmit) events triggered by an operator with respect to the GUI 210 to the event receiver module 420. The event receiver module 420 is configured to generate (or capture) the received events in turn. Input event forwarding is well known and will not be described further herein. Examples of such forwarding include the X11 forwarding system available in the X11 window system, Microsoft Corporation's Remote Desktop Services available in the Windows operating system, the open source Virtual Network Computing (VNC) and variations thereof. Typically, such forwarding systems involve running a software agent (or helper program) on the computer system 200 that captures events at the operating system level. In some cases, such as the Microsoft Remote Desktop Services and the X11 forwarding system, the forwarding system is part of the operating system.
[0051] Additionally or alternatively, the event receiver module 420 is configured to receive input signals generated by one or more input devices 124, 126. The input signals are received from hardware devices in an input signal path between the one or more input devices 124, 126 and the user input interface 114 of the computer system 200. Such hardware devices (such as keyloggers) are well known and will not be described further herein. The event receiver module 420 is configured to generate (or capture) a sequence of events 217 from the received input signals.
[0052] The computer vision module 430 is configured to identify elements of the GUI 210 (commonly referred to as graphical user interface elements) from the GUI video 215. The computer vision module 430 is configured to identify the GUI elements based on the known configuration (or appearance) of expected GUI elements using image analysis techniques such as feature detection. Additionally or alternatively, the computer vision module 430 can be configured to use machine learning algorithms trained to identify specific GUI elements. The computer vision module 430 can be configured to use optical character recognition techniques to identify textual components of the identified GUI elements. Standard object detection techniques can be used in such identification. For example, a Mask-RCNN approach can be used, as described in "Mask R-CNN," Kaiming He, Georgia Gkioxari, Piotr Dollar, Ross Girshick, IEEE Transactions on Pattern Analysis and Machine Intelligence 2020, DOI:10.1109 / TPAMI.2018.2844175, the entire contents of which are incorporated herein by reference.
[0053] Additionally or alternatively, such techniques may use machine learning, such as deep learning models, to detect GUI elements. Such deep learning models may be trained using training data that includes annotated screenshots (or portions thereof) of GUI elements. In particular, the annotations may include bounding boxes that are used to identify known GUI elements within a given screenshot.
[0054] The computer vision module 430 is further configured to identify one or more anchor GUI elements for a given identified GUI element. The computer vision module 430 is also configured to associate one or more anchor elements with a given identified GUI element. As will be briefly described below, an anchor element can be identified for a given element based on expected co-occurring GUI elements. An anchor element is typically identified for a given GUI element, which allows the computer vision module 430 to re-identify the given element if the position (or location) of the given GUI element changes due to GUI changes.
[0055] The action identification module 440 is configured to identify one or more actions performed by the operator 201 on the GUI 210. In particular, the action identification module 440 is configured to identify the action based on the sequence of events 217 and the GUI elements identified by the computer vision module 430. Typically, an action includes an input applied to one or more GUI elements. For example, an action may be any of the following: a pointer click on a GUI element (such as a button or other clickable element), text entry into a text box, selection of one or more GUI elements via a drag event, etc.
[0056] The action identification module 440 is configured to identify actions, typically by matching one or more events in the sequence of events 217 with one or more identified GUI elements. For example, a pointer click having a pointer position that matches a clickable GUI element (such as a button) may be identified as an action in which the GUI element is clicked. Similarly, one or more key press events that occur when the cursor is in an identified text box may be identified as an action in which text is entered into the text box. Additionally or alternatively, events such as click events that do not occur within a GUI element may be ignored.
[0057] The workflow generation module 450 is configured to generate the workflow 250 based on the actions identified by the action identification module 440. As described above, the workflow 250 defines a sequence of interactions with the GUI 210. Each interaction (or step) of the workflow typically defines an input (or inputs) that is triggered and a GUI element that is acted upon. For example, an interaction may be the click of a button, and the interaction may specify the button (i.e., GUI element) that is clicked and the type of click (e.g., right or left). The interaction (or step) also specifies (or defines, or indicates) an anchor element for the GUI element that is acted upon, thereby enabling re-identification of the GUI element as the workflow is executed, as will be described briefly below.
[0058] In this way, it will be appreciated that the generated workflow 250 enables an execution system (or an RPA robot) to execute a process using a GUI, as will be briefly described below. In other words, the workflow analysis module is configured, via the generated workflow 250, to train a given RPA robot to execute a process based on the observation of a human operator 201 executing said process using the GUI 210.
[0059] FIG. 5 illustrates generally a computer vision module 430, such as the computer vision module described above in relation to FIG.
[0060] The computer vision module 430 includes a representative frame identification module 510 , a GUI element identification module 520 , and an event identification module 530 .
[0061] The representative frame identification module 510 is configured to identify a representative frame (or image) in the video 215 of the GUI. A representative frame may be identified as a frame that depicts the GUI in a particular state. It will be appreciated that when the operator 201 interacts with the GUI 210, the GUI 210 typically changes state by causing the display of the GUI to change to reflect the new state. For example, a new window may be displayed with new GUI (or interface) elements, a dialog box may be displayed, etc. Similarly, GUI (or interface) elements may be removed, for example, a dialog box may disappear when the operator interacts with them, a new tab may be selected replacing the display of the old tab with the new tab, etc. In this manner, it will be appreciated that a representative frame may be identified based on changes to the displayed GUI.
[0062] Representative frame identification module 510 may be configured to identify representative frames by applying video analysis techniques to identify frames or images in a video that exceed a threshold level of visual difference relative to the frame (or frames) that precede them. Additionally or alternatively, representative frame identification module 510 may be configured to identify representative frames based on identifying new interface elements present in a given frame that were not present in the previous frame. Identification of GUI elements may be performed by GUI element identification module 520, which is described briefly below.
[0063] The representative frame identification module 510 is configured to identify representative frames using a suitable trained machine learning algorithm (or system), where the machine learning algorithm is trained to identify GUI state changes based on a video of the GUI. In particular, the machine learning algorithm may classify frames (or images) from the video of the GUI as representative frames based on changes in the visual appearance of the frames relative to adjacent (or nearby) frames in the video. Such classification may also be based on correlations (or co-occurrences) between such changes in visual appearance and input events, thereby allowing for distinguishing between changes in appearance that are due to user interaction and those that are not.
[0064] The GUI element identification module 520 is configured to identify one or more GUI (or interface) elements within the GUI. In particular, the GUI element identification module 520 is configured to identify GUI elements from images of frames of the video 215 of the GUI, such as the representative frames identified by the representative frame identification module 510. The GUI element identification module 520 may be configured to identify GUI elements based on known configurations (or appearances) of expected GUI elements using image analysis techniques, such as feature detection. Additionally or alternatively, the GUI element identification module 520 is configured to use machine learning algorithms trained to identify specific GUI elements.
[0065] Further, the GUI element identification module 520 is configured to identify and / or associate one or more anchor elements with a given identified GUI element. An anchor GUI element for a given GUI element is identified based on its proximity (or distance) to the given identified element. In particular, a GUI element may be identified as an anchor element if it is located within a predetermined distance of the given GUI element. Additionally or alternatively, an anchor element may be identified as an anchor element based on the type of anchor element and the given element. For example, if the given GUI element is a text box, a text label is expected to be present near the text box. Thus, a label GUI element may be identified as an anchor element for a text box GUI element. Similarly, if the given GUI element is a radio button element, an additional radio button element is expected to be present near the identified radio button. It will be appreciated that other methods for identifying anchor elements may be used instead of or in addition to those described above. Such methods may include any combination of identifying a predetermined number of nearest neighbor elements as anchor elements (k-nearest neighbor approach), identifying nearest neighbor elements in one or more predetermined directions as anchor elements, identifying all elements within a predetermined region of a given identified element as anchor elements, etc.
[0066] The GUI element identification module 520 is further configured to re-identify the GUI elements (such as GUI elements previously identified by the GUI element identification module 520) identified in another image (or frame) of the GUI video 215 (or further video). In particular, the GUI element identification module 520 is configured to determine that the GUI elements identified in the other image correspond to the previously identified GUI elements from the previous image based on the anchor elements associated with the previously identified GUI elements. The GUI elements in the other image are re-identified based on identifying anchor elements of the GUI elements in the other image that correspond to the same anchor elements of the previously identified GUI elements. An anchor element may be considered to correspond to another anchor element if the relative position of the anchor element with respect to the respective identified GUI element is within a predetermined threshold. Similarly, if the identified GUI element is associated with multiple (or sets of) anchor elements, the set of anchor elements is considered to correspond to another set of anchor elements if the relative positions of the set of anchor elements with respect to the respective identified GUI elements match within a predetermined threshold. It will be appreciated that anchor elements may have weights (or importance) associated with their relative position, with higher weighted anchor elements being required to agree to whiten a smaller predetermined threshold.
[0067] In this manner, it will be appreciated that the GUI element identification module can re-identify the same GUI input element, such as a particular input field within the GUI, in videos of subsequent instances of the GUI. Due to the use of anchor elements, this re-identification is still possible even if the GUI is modified such that the GUI element changes position, because the GUI element can be re-identified using a co-occurring GUI element (anchor element), such as the label of a text box that has likely been moved.
[0068] The GUI element identification module 520 is configured to re-identify GUI elements based on their respective anchor elements using a suitable trained machine learning algorithm (or system). For example, a graph neural network may be used as part of the machine learning algorithm. Here, GUI elements are mapped (or represented) by nodes in a graph. The connections between the nodes have different feature values that depend on the two nodes. Such feature values may include any one or more of the following: the distance between the two nodes, the orientation (or pose) of the nodes, whether the nodes belong to the same panel in the application window, etc. The graph neural network may be trained by optimizing re-identifying the nodes. In effect, the graph neural network learns through the training process which feature values are important for re-identification. In this way, the GUI element identification module can take this into account when initially identifying the anchor elements and select the more effective anchor elements for re-identification.
[0069] It will be appreciated that the GUI element identification module 520 may be configured to use a graph neural network as part of a machine learning algorithm to initially identify an anchor element for a given element in a similar manner. In particular, an element may be identified as an anchor element based on the feature values described above.
[0070] The event identification module 530 is configured to identify further events based on the video 215 of the GUI. While the events described herein above relate to events triggered by (or otherwise involving) input from the operator 201, it will be appreciated that other events may occur based on inactivity of the operator or based on external triggers. For example, hovering a pointer over an interactive element may be considered a hovering event that may trigger the display of one or more further GUI elements (such as a context menu). Because this is caused by inactivity, i.e., the operator does not move the pointer for a predefined period of time, such an event may not appear in the sequence of events 217 captured by the event receiver module 420. Additionally or alternatively, inactivity may be used to identify dynamic content (or elements), such as advertisements. This may be done based on determining a page load event, such as when a web page finishes loading. The event identification module 530 may be configured to identify further events based on identifying the appearance (or materialization or display) of one or more other GUI elements in the GUI at a point where there is no corresponding event in the sequence of events 217 captured by the event receiver module 420. The event identification module 530 can be configured to use an appropriate trained machine learning algorithm (or system) to identify further events based on the GUI video 215. The event identification module 530 may be configured to distinguish between events having similar user inputs. For example, a user input of dragging a mouse may be associated with several different interactions. These interactions may depend on the identified GUI element (or elements). For example, a user input of dragging a mouse may be associated with dragging a slider, dragging and dropping an element, selecting an element within an area created by dragging (known as a lasso tool).These are all similar input event captures: left mouse button press, mouse movement, and left mouse button release, but with semantically different functions. The event identification module 530 may be configured to distinguish between these events based on matching input with identified GUI elements. In particular, the event identification module 530 may use heuristics or trained machine learning classification models.
[0071] The event identification module 530 is typically configured to include the identified further events in the sequence of events 217 for further processing by the action identification module 440 .
[0072] FIG. 6 illustrates generally an action identification module 440, such as the action identification module 440 described above in relation to FIG.
[0073] The action identification module 440 includes an event matching module 610 , a sub-process identification module 620 , and an input / output identification module 630 .
[0074] The event matching module 610 is configured to identify an action by matching one or more events in the sequence of events 217 with one or more identified GUI elements, as described above. For example, the event matching module 610 can pair an event with a corresponding identified GUI element that received the action. This can be done by matching the spatial coordinates of the event (e.g., a mouse click) with the GUI element at its location on the screen. For events that do not have spatial coordinates (e.g., a keyboard action), a previous event that has spatial coordinates, such as a mouse click, can be used to pair the event with a GUI element. Additionally or alternatively, the location of a particular identified GUI element, such as a text cursor (or other input marker), can be used to pair the event (e.g., a key press) with the respective GUI element (e.g., a text box).
[0075] The sub-process identification module 620 is configured to identify one or more sub-processes. It will be appreciated that a given process performed by the operator 201 using the GUI 210 may be decomposed into separate sub-processes. Typically a process may include two or more separate tasks, each performed by a set of one or more applications. For example, for the process of submitting an expense claim, there may be a first sub-process of obtaining the required invoice using a first application, as a second sub-process, the invoice must then be uploaded to an internal accounting platform, and finally, as a third sub-process, an expense application is used to generate the invoice itself. Thus, the sub-process identification module 620 may be configured to identify a sub-process as a series of events 217 corresponding to a particular application. The application (and use of the application) may be identified based on GUI elements identified by the computer vision module 430. For example, events triggered during a period when a window of a particular application was in focus may be identified as a sub-process. In one example, a sub-process may be identified as all events triggered on a particular window when in focus, and / or all events triggered on a window, but the GUI elements of that window do not change beyond a predetermined threshold. By identifying an event triggered on a window while the GUI elements of that window do not change by more than a predetermined threshold, a subprocess may be identified, for example, in association with a particular tab on a tabbed window, where moving between tabs may change (e.g., shift position, add, or remove) a threshold number (or more) of elements. It will be appreciated that other such heuristic approaches (or criteria) may also be used.
[0076] The input / output identification module 630 is configured to identify one or more process inputs. It will be appreciated that when performing a given process, the operator 201 may use a GUI to input data (or process inputs). For example, the operator 201 may input (or enter) a username and / or password into the GUI as part of the process. The input / output identification module 630 may be configured to store the input data in a data store 810 (such as the data store 122 mentioned above), which will be described briefly below.
[0077] The input / output identification module 630 is configured to identify a process input as an operation that requires input data to be retrieved from the storage device 810 .
[0078] The input / output identification module 630 is configured to identify one or more process inputs and / or process outputs for a sub-process. It will be appreciated that a sub-process can provide an output (or process output) that can be used as a process input to another sub-process. A process output can include data displayed via a GUI. For example, the first sub-process described above may include viewing the retrieved invoice to allow the invoice number to be copied to a clipboard. A third sub-process may then include pasting this invoice number into an expense invoice form. In this way, the process output of the first sub-step is the invoice number copied to the clipboard. This invoice number in the clipboard is used as a process input for the third sub-step.
[0079] In other words, if there is input for the subprocess (such as a username and / or password), the user may be given an option for the input to specify the source to be used for the input (such as a data store, clipboard, file, etc.).
[0080] Figure 7 illustrates generally an exemplary workflow 700. Also illustrated in Figure 7 is an edited version 750 of the workflow.
[0081] The workflow 700 includes four sub-processes 1, 2, 3, 4 having process inputs and process outputs as described above. Sub-process 1 has two process outputs 1-1; 1-2. The first process output 1-1 is a process input for sub-process 2. The second process output 1-2 is a process input for sub-process 3. Sub-process 2 has a process output 2-1 which is a process input for sub-process 3. Similarly, sub-process 3 has a process output 3-1 which is a process input for sub-process 4.
[0082] It will be appreciated that the tasks performed by a sub-process may equally well be performed in different sub-processes. The different sub-processes may form part of different workflows. For example, for the process of submitting expense claims described above, there may be a change in the internal accounting platform. This may require the second sub-process to be modified to use the new platform. This can be achieved without re-recording (or re-generating) the workflow, by substituting a new sub-process that uses the new accounting platform in the existing workflow to generate an edited version of the workflow.
[0083] The edited version of the workflow 750 includes subprocesses 1, 2, and 4 of the workflow 700, but the second subprocess 2 is replaced by another subprocess 5. This was possible because the other subprocess has the same process inputs and process outputs as the second subprocess. As can be seen, the first process output 1-1 is now a process input for the other subprocess. The other subprocess 5 has a process output 5-1 which is a process input for subprocess 3.
[0084] In this manner, it will be appreciated that workflows may be modified and / or combined to perform new processes to form new workflows without the new processes being executed by the operator 201.
[0085] FIG. 8 illustrates generally an example execution module 270 of an RPA system, such as RPA system 230 described above in connection with FIG.
[0086] The executive module 270 shown in Figure 8 includes a video receiver module 410, a computer vision module 430, a data storage device 810 (such as the data storage device 122 discussed above), and an input trigger module 820. Also shown in Figure 8 is a computer system 200-1 having a GUI 210-1.
[0087] It will be understood that the above description of the video receiver module 410 and the computer vision module 430 applies equally to the video receiver module 410 and the computer vision module 430 shown in Figure 8. In particular, it will be understood that the computer vision module 430 is configured to receive the video 215 of the GUI 210 from the video receiver module 410.
[0088] 8, execution module 270 receives (or loads) workflow 250 as described above, which helps to train (or otherwise enable) execution module 270 to execute the processes of workflow 250 using the GUI of computer system 200-1.
[0089] The input trigger module 820 is configured to generate input signals to the computer system 200 to execute the interaction specified in the workflow. In particular, for a given interaction, the input trigger module 820 is configured to use the computer vision module 430 to re-identify the GUI element specified in the interaction. The input trigger module is configured to generate inputs to execute the interaction based on the re-identified GUI element. For example, if the interaction is to specify a pointer click on a particular button, the input trigger module generates a pointer movement and click, such that the click occurs at the location of the button and is re-identified by the computer vision module. Thus, any displacement of the button in the GUI relative to the location of the button when the workflow was generated is taken into account.
[0090] The input trigger module 820 may also be configured to retrieve specific text inputs for an interaction from an external source, such as the data storage 810. The data storage may be configured to store specific text inputs for a particular step (or interaction) of the workflow. Examples of such specific text inputs may include a username and / or password, a predefined ID number or code, etc. The data storage may be protected to ensure confidentiality of the data stored therein. In this way, sensitive inputs (such as usernames and passwords) may be protected and / or changed for future executions of the process, as necessary.
[0091] Therefore, it can be understood that by repeating the interactions in the workflow, the execution module 270 can execute the process of the workflow via the GUI. In this manner, the execution module 270 can be understood to be an RPA robot trained to execute the process.
[0092] Figure 9a shows an image 900 (or frame) from the GUI video 215. Several GUI elements have been identified by the GUI element identification module 520, as described above. The identified GUI elements are shown in the diagram using boxes for illustrative purposes. As can be seen in Figure 9a, the identified GUI elements include icons, text labels, tabs, menu items (buttons), etc.
[0093] In particular, a particular GUI element 910 (menu item "Computer" in FIG. 9a) has been identified, and four associated anchor elements 920 have also been identified. The identification of the anchor elements is as described above, in order to enable re-identification of the particular GUI element 910. In this example, the anchor elements have been selected by the GUI element identification module based on their k nearest neighbors, where k is here equal to 4. This can be seen to prioritize proximity as a feature value. However, the orientation of the anchor elements and / or the identified elements relative to each other may also be used, i.e. the anchor box is not only in close proximity to the candidate, but also in the same orientation / direction.
[0094] Figure 9b shows an image 950 (or frame) from a further video 215 of the GUI of Figure 9a. In image 950, some elements of the GUI differ with respect to image 900 shown in Figure 9. Again, some GUI elements have been identified by GUI element identification module 520, as described above. The identified GUI elements are shown as boxes in the figure. As can be seen in Figure 9a, the identified GUI elements include icons, text labels, tabs, etc.
[0095] In image 950, the particular GUI element 910 identified in Figure 9a has been re-identified by GUI element identification module 520, as described above, based on the identified anchor element 920. In this manner, the particular element 910 is re-identified despite changes to the GUI.
[0096] It will be understood that the methods described are shown as individual steps performed in a particular order. However, one of ordinary skill in the art will recognize that these steps may be combined or performed in a different order while still achieving the desired results.
[0097] It will be appreciated that embodiments of the present invention may be implemented using a variety of different information processing systems. In particular, while the figures and their description provide exemplary computing systems and methods, they are presented merely to provide a standard useful in describing various aspects of the present invention. Embodiments of the present invention may be executed on any suitable data processing device, such as a personal computer, a laptop, a personal digital assistant, a mobile phone, a set-top box, a television, a server computer, and the like. Of course, the description of the system and method is simplified for purposes of discussion, and they are merely one of many different types of systems and methods that may be used for embodiments of the present invention. It will be appreciated that the boundaries between logical blocks are merely illustrative, and that alternative embodiments may merge logical blocks or elements, or impose alternative decompositions of functionality on the various logical blocks or elements.
[0098] It will be understood that the above-mentioned functions may be implemented as one or more corresponding modules as hardware and / or software. For example, the above-mentioned functions may be implemented as one or more software components for execution by a processor of a system. Alternatively, the above-mentioned functions may be implemented as hardware, such as on one or more field programmable gate arrays (FPGAs), and / or one or more application specific integrated circuits (ASICs), and / or one or more digital signal processors (DSPs), and / or other hardware configurations. The method steps implemented in the flowcharts included herein or described above may each be implemented by a corresponding respective module, and multiple method steps implemented in the flowcharts included herein or described above may be implemented together by a single module.
[0099] Insofar as the embodiments of the present invention are implemented by a computer program, it will be understood that storage media and transmission media carrying the computer program form aspects of the present invention. A computer program may have one or more program instructions or program codes that, when executed by a computer, execute the embodiments of the present invention. The term "program" as used herein may be a sequence of instructions designed to execute on a computer system, and may include subroutines, functions, procedures, modules, object methods, object implementations, executable applications, applets, servlets, source code, object code, shared libraries, dynamic link libraries, and / or other sequences of instructions designed to execute on a computer system. The storage medium may be a magnetic disk (such as a hard drive or floppy disk), an optical disk (such as a CD-ROM, DVD-ROM or BluRay disk), or a memory (such as a ROM, RAM, EEPROM, EPROM, flash memory, or portable / removable memory device), etc. The transmission medium may be a communication signal, a data broadcast, a communication link between two or more computers, etc.
Claims
1. 1. A method for training an RPA robot to use a GUI, comprising: capturing video of the GUI as an operator uses the GUI to perform a process; capturing a series of events triggered when the operator uses the GUI to execute the process; generating a workflow by analyzing the video and the sequence of events that, when executed by an RPA robot, causes the RPA robot to perform the process using the GUI; having The analyzing step comprises: identifying one or more interactive elements of the GUI from the video; matching at least one of the events in the sequence of events as corresponding to at least one of the interactive elements; having Identifying a given interactive element among the one or more interactive elements includes: identifying one or more anchor elements within the GUI for the given interactive element; associating the one or more anchor elements with the given interactive element; Including, method.
2. A given anchor element of the one or more anchor elements is identified for the given interactive element based on expected co-occurring GUI elements. The method of claim 1.
3. A given anchor element of the one or more anchor elements is identified for the given interactive element based on a proximity of the given anchor element to the given interactive element.
3. The method according to claim 1 or 2.
4. A given anchor element of the one or more anchor elements is identified for the given interactive element based on a type of the given anchor element and a type of the given interactive element.
4. The method according to any one of claims 1 to 3.
5. A given anchor element among the one or more anchor elements is using a k-nearest neighbor approach to identify a predetermined number of GUI elements that are closest to the given interactive element as the one or more anchor elements; and / or identifying a predetermined number of nearest GUI elements in one or more predetermined directions from the given interactive element as the one or more anchor elements; and / or identifying all GUI elements within a predetermined area from the given interactive element as the one or more anchor elements; is identified for the given interactive element based on The method of claim 1.
6. Each of the one or more anchor elements has a weight.
6. The method according to any one of claims 1 to 5.
7. The method of claim 1 , wherein identifying the one or more interactive elements is performed by applying a trained machine learning algorithm to at least a portion of the video.
8. The method of claim 1 , wherein the step of identifying one or more interactive elements comprises identifying a location of the one or more anchor elements in the GUI for the given interactive element.
9. The method of claim 8 , wherein a machine learning algorithm is used to identify the one or more anchor elements based on one or more predetermined feature values.
10. The method of claim 9 , wherein the feature values are determined through training of the machine learning algorithm.
11. The characteristic value is the distance between the first GUI element and the second GUI element; the orientation of the first GUI element relative to the second GUI element; whether the first GUI element is within the same application window as the second GUI element; The method according to claim 9 or 10, comprising any one or more of the following:
12. The sequence of events is: Keypress event; Hovering event; Click event; Drag events; Gesture events; The method of any one of claims 1 to 11, comprising any one or more of:
13. The method of claim 1 , further comprising the step of including one or more estimated events in the sequence of events based on the video.
14. The method of claim 12 , wherein a hover event is inferred based on one or more interface elements being visible in the GUI.
15. The method of claim 1 , wherein the analyzing comprises identifying a sequence of sub-processes of the process.
16. 16. The method of claim 15, wherein a process output of one of the sub-processes of the sequence is used by the RPA robot as a process input to another sub-process of the sequence.
17. 17. The method of claim 15 or 16, further comprising editing the generated workflow to include a portion of a previously generated workflow that corresponds to another sub-process, such that when the edited workflow is executed by an RPA robot, the RPA robot executes a version of the process using the GUI, the version of the process including the another sub-process.
18. 20. The method of claim 17, wherein the version of the process includes the alternative sub-process in place of an existing sub-process of the process.
19. The method of claim 1 , wherein the video and / or the sequence of events is captured using a remote desktop system.
20. 13. A method of executing a process using a GUI using an RPA robot trained by the method of claim 1.
21. 21. The method of claim 20, wherein the RPA robot re-identifies one or more interactive elements in the GUI based on respective anchor elements specified in a workflow.
22. 22. The method of claim 21, further comprising using a machine learning algorithm to re-identify the one or more interactive elements based on one or more predefined feature values.
23. The method of claim 22 , wherein the feature values are determined through training of the machine learning algorithm.
24. The characteristic value is the distance between the first GUI element and the second GUI element; the orientation of the first GUI element relative to the second GUI element; whether the first GUI element is within the same application window as the second GUI element; 24. The method according to claim 22 or 23, wherein the method is any one or more of the following:
25. Apparatus configured to carry out a method according to any one of claims 1 to 24.
26. A computer program which, when executed by a processor, causes the processor to carry out a method according to any one of claims 1 to 24.
27. 27. A computer readable medium having recorded thereon the computer program of claim 26.
Citation Information
Patent Citations
Robotic process automation
JP2018535459A
Management system, terminal device, management device, management method, and program
JP2019168945A
