User Interface (UI) Extraction, Recognition and Machine Learning Using Multi-Anchors

Multi-anchoring in RPA systems addresses errors in UI configurations by using multiple anchors and geometric relationships to enhance accuracy and performance, particularly in virtual and remote environments.

JP7531924B2Active Publication Date: 2024-08-13UIPATH INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022066133
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-19
Filing Date
2022-04-13
Publication Date
2024-08-13
Estimated Expiration
2040-07-17

AI Technical Summary

Technical Problem

Existing robotic process automation (RPA) systems using single anchors or reference points in user interface (UI) configurations are prone to errors due to issues like unwanted duplication, false positives, and missing elements, particularly in virtual or remote machine environments, which are exacerbated by factors such as DPI, sizing, scaling, and video frame rate variations.

Method used

Implementing multi-anchoring analysis in RPA for UI element detection and training, utilizing multiple anchors and geometric relationships to enhance accuracy and reduce errors in workflows across desktop, web, and virtual/remote machine configurations.

Benefits of technology

Multi-anchoring reduces errors and improves RPA performance by providing robust element identification and automation, even in dynamic environments, through geometric relationships and machine learning-based confidence levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007531924000001
    Figure 0007531924000001
  • Figure 0007531924000002
    Figure 0007531924000002
  • Figure 0007531924000003
    Figure 0007531924000003
Patent Text Reader

Abstract

A computing device and method are provided that mitigate errors during workflow generation or robotic process automation (RPA) runtime. In one embodiment, multiple anchors (312, 314) on a window or application (302) in a user interface (UI) are used by an RPA (Robot Process Automation). The multiple anchors are used to determine relationships between elements in a captured image of the UI for the RPA. The anchoring results are used to train or retrain a machine learning (ML) component.
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] Robotic Process Automation (RPA) may automate repetitive operations, functions, or workflows in enterprise platforms, virtual machine (VM) configurations, remote desktops, cloud computing, desktop applications, etc. To automate, capture, extract, scrape, or execute user interface (UI) for automation, anchor or reference points may be utilized with computer vision (CV) or machine vision (MV) to identify one or more elements within a target area of ​​an image of the UI. However, configurations utilizing a single anchor or reference point may be susceptible to undesirable overlaps, errors, false positives, missing elements, etc.

[0002] RPA design or workflow execution can have errors based on DPI (dots per inch), sizing, scaling, video frame rate, shading, etc. These errors can be more pronounced in virtual machine or remote machine configurations. Also, RPA with CV can have errors in button shapes and checkboxes in the UI. It is desirable to mitigate errors during workflow generation or RPA runtime with improved anchoring. Summary of the Invention

[0003] Methods and apparatus are disclosed for utilizing multi-anchoring on a user interface (UI) for robotic process automation (RPA) of one or more workflows. Multi-anchoring analysis on a UI during development or runtime of a robot may be utilized for element detection or training on extracted or scraped images for one or more workflows for automation. Multi-anchoring analysis may also be configured on UIs for configuration of desktop applications, web applications, and virtual machines or remote machines to reduce errors and improve performance. [Brief description of the drawings]

[0004] 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:

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

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

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

[0008] [Diagram 2] This is an explanatory diagram of retraining using an RPA feedback loop.

[0009] [Diagram 3] This is an explanatory diagram of multi-anchoring of RPA user interface (UI).

[0010] [Figure 4]FIG. 13 is another explanatory diagram of multi-anchoring of UI for RPA.

[0011] [Figure 4A] FIG. 13 is another explanatory diagram of multi-anchoring of UI for RPA.

[0012] [Diagram 5] FIG. 11 is an explanatory diagram of a process using multi-anchoring of an RPA UI. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] In the methods and processes described below, 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 may be expanded as well as longer lists. When using the notation X / Y, it may include X or Y. Alternatively, when using the notation X / Y, it may include X and Y. The X / Y notation may be expanded as well as longer lists with the same described logic.

[0014] FIG. 1A is an illustration of a development, design, operation, or execution 100 of a robotic process automation (RPA). A designer 102, sometimes referred to as a studio, development platform, development environment, or the like, 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, cuboids, 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.

[0015] Non-limiting examples of operations that may be accomplished by a workflow include performing one or more logins, filling out forms, information technology (IT) administration, etc. To execute a workflow for UI automation, the robot may need to uniquely identify certain screen elements, such as buttons, checkboxes, text fields, labels, etc., regardless of application access or application development. Examples of application access may be local, virtual, remote, cloud, Citrix®, VMWare®, VNC®, Windows® Remote Desktop, Virtual Desktop Infrastructure (VDI), etc. Examples of application development may be win32, Java, Flash, HyperText Markup Language (HTML), HTML5, Extensible Markup Language (XML), Javascript, C#, C++, Silverlight, etc.

[0016] 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 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, for process debugging processes.

[0017] A robot may be an application, applet, script, etc., and may automate a UI that is transparent from the underlying operating system (OS) or hardware. Upon 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 a robot 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 for directing or commanding multiple robots to automate a computing platform.

[0018] 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 conductor 106 and the conductor 104. Deployment may include ensuring delivery of package versions to robots assigned for execution. Configuration may include maintenance and delivery of robot environment and process configurations. Queuing may include providing management of queues and queue items. Monitoring may include tracking robot identification 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 quickly execute queries. The conductor 104 may provide interconnectivity by serving as a centralized point of communication for third-party solutions and / or applications.

[0019] The robot(s) or automation-performing device 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 with input, instructions, directions, guidance, etc., from a third-party component.

[0020] The robot(s) or automation executor 106 may be an execution agent that executes the workflow 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.

[0021] In some embodiments, the robot(s) or automated execution device 106 may be installed in user mode. These robots may have the same rights as the user in which the given robot is installed. Also, high density (HD) robots may be supported to maximize the use of each machine, such as in HD environments.

[0022] In certain embodiments, the robot(s) or automation executor 106 may be split, distributed, etc. into several components, each specialized for a particular automation task or activity. 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 or automation executor 106 executes). These services may trust and manage credentials for the robot(s) or automation executor 106.

[0023] 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 trust and manage credentials for the Robot 130. If the SCM Management Robot Service is not installed, a Windows application may be launched automatically.

[0024] An executor may execute 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 ask 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 the start of a job and wait for its output.

[0025] As described above, a configuration in which the components of the robot or automation executor 106 are separated helps developers, support users, and computing systems to more easily execute, identify, and track each component. In this manner, special behaviors may be set 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 run at any DPI regardless of the configuration of the computing system on which they were created. Also, projects from the designer 102 may be made independent of the browser zoom level. For applications that are not DPI aware or are marked as not DPI aware intentionally, DPI may be disabled in some embodiments.

[0026] 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 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 the driver used for UI automation.

[0027] 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 processors 144 coupled to the bus 142 for processing. The one or more processors 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 processors 144 may also have multiple processing cores, at least some of which may be configured to perform specific functions. Also, multi-parallel processing may be configured. Additionally, at least one or more processors 144 may be neuromorphic circuits that include processing elements that mimic biological neurons.

[0028] 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 other types of non-transitory computer-readable media, or combinations thereof. The non-transitory computer-readable media may be any media accessible by the processor(s) 144 and may include volatile media, non-volatile media, and the like. Additionally, the media may be removable or non-removable.

[0029] The communication device 148 may be any of a variety of 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 ​​Downstream Packet Access (HSDPA), High Speed ​​Upstream Packet Access (HSUPA), High Speed ​​Packet Access (HSPA), Long Term Evolution (LTE), LTE Advanced (LTE-A), 802.11x, Wi-Fi, Zigbee, Ultra-WideBand (UWB), 802.16x, 802.15, home It may be configured as a Node-B (HnB), Bluetooth, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Near Field Communication (NFC), Fifth Generation (5G), New Radio (NR), or any other wireless or wired device / transceiver for communication via one or more antennas. Antennas can be singular, arrayed, phased, switched, beamforming, beamsteered, etc.

[0030] The one or more processors 144 may further be coupled 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, via bus 142. 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.

[0031] A keyboard 152 and control devices 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 therewith, or computing system or environment 140 may operate autonomously.

[0032] The memory 146 may store software components, modules, engines, etc. that provide functionality when executed or processed by the one or more processors 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.

[0033] 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.

[0034] 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.

[0035] The modules may be implemented at least in part 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, which may be organized as, for example, an object, a procedure, a routine, a subroutine, or a function. The executable files of the identified modules may be co-located or stored in different locations such that when logically combined they constitute a module.

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

[0037] In the examples given herein, the computer program may be comprised of hardware, software, or a hybrid embodiment. The computer program may be comprised of modules that are in operative communication with each other to pass on information or instructions.

[0038] FIG. 2 is an illustration of retraining using feedback loop of RPA. CV module, engine, or component 202 and optical character recognition (OCR) module or engine 204 may receive elements, buttons, checkboxes found in the captured image from the robot 206 along with corresponding coordinates and type information. The captured image may be a screenshot of the targeted visual and textual parts of the UI on the client created during development, runtime, etc. for the automation. The image may be a part or a portion of a window, document, report, receipt, invoice, application, etc. The image may include either structured or unstructured data. The image of the UI may include the GUI (Graphical User Interface) of the application to be automated.

[0039] The robot 206 may identify two or more anchor points, reference points, etc. of a target or element in an image of the UI for the CV module, engine, or component 202. In certain configurations, a first anchor may be automatically selected, and user input may be requested for one or more additional identifying anchors if the element in the target region is not unique. As an example, the two or more anchor points may help determine the relationship of an edit box and a checkbox. In certain configurations, the relationship may prevent the CV module, engine, or component 202 from misidentifying a checkbox as an edit box or radio button and erroneously discarding it, such as due to element size or format in the ML model.

[0040] The robot 206 may also send a captured image or screenshot of the target area to the OCR module or engine 204 to detect text or text fields, as would be understood by one of ordinary skill in the art, for assistance in determining the relationship of the captured UI image or screen. A text field may be composed of one or more text tokens. A text token may include one or more characters found between a set of predefined delimiters, such as white space characters, punctuation characters, special characters, etc. A text token may include a number, a date, an email address, a Uniform Resource Identifier (URI), a zip code, etc.

[0041] In multi-anchoring of the UI for RPA 200, one or more anchors or reference points in the UI image may be utilized to pair or create geometric, location, positional, coordinate-based associations or relationships for element identification, visualization, development, generation, production, playback, training, retraining, etc. In certain configurations, multi-anchoring may be utilized by the RPA system as an additional or secondary layer of error checking to the primary capture of the UI.

[0042] Labels and text fields defined as anchors in the UI for automation may be connected by or form relationships. In an example, the text field may be the target and the label may be the anchor. As an example, there may be a relationship to the left of an element in the UI where there is a first name field and label, the label is anchored and there is a second name field anchored above the first name field. During RPA development, a set of anchors may be defined for one or more elements required for an activity or workflow. In certain configurations, the elements and anchors along with the target element may act as a logical fingerprint that may be used to identify the same element during subsequent executions for the automation, such as at runtime.

[0043] 3 is another illustration of multi-anchoring of a UI for an RPA 300. As an example, a window or application 302 in the UI may include a field 304. 1~4 , button 1 (306), button 2 (308), and labels 1-4 for minimize / maximize / close control 310. The window or application 302 may be oriented or positioned substantially in front of the window or application 302. In certain configurations, the multi-anchoring of the UI for the RPA 300 may represent a virtual machine environment, a remote desktop, and the like. However, the multi-anchoring of the UI for the RPA 300 may represent other computing environments or applications, as will be appreciated by those skilled in the art. For example, the multi-anchoring configuration may be applied to activities including portable document format (PDF), Silverlight, Flash, and the like.

[0044] Anchor X (312) may include coordinates (x, y, width, height) relative to the dimensions of Button 2 (308). In certain configurations, the coordinates may be screen coordinates of elements stored in a region of the UI, and at runtime, the relative relationships between all elements may be inferred automatically by the robot 206. Furthermore, the use of relative relationships at runtime may be performed with or without the CV module, engine, or component 202.

[0045] In a particular embodiment, the coordinates (x, y, width, and height) may define a bounding box. The parameters x and y may be the coordinates of the vertices, and w and h may be the width and height. The relationship between the target and the anchor may be elastic within a tolerance or threshold to changes or variances in scale, DPI, etc. in the UI or application area. In image matching or selector-based configurations, changes or differences may be undesirable and problematic, since a robot using CV may require identical structures to position elements identified during development to automate a workflow or activity. If the application is different during automation development, the robot or workflow may crash at runtime.

[0046] Elasticity may be particularly desirable for applications that have dynamic or "fluid" layouts, such as web pages that reflow content based on window size. Elasticity may also be beneficial for video streams or outputs of virtual machines, remote machines, or virtual desktop environments. In certain embodiments, it may be desirable for geometric anchors or reference coordinates or angles to be inelastic.

[0047] Anchor Y (314) may be utilized for element detection within a window or application 302 by measuring the geometric angle (θ) relationship 1 between Button 1 (306) and Field 3044. Multi-anchoring via Anchor X (312) and Anchor Y (314) may prevent a robot or workflow crash at runtime when an element within a window or application 302 is substantially different or different than that under automation development. This may be accomplished using multiple anchors by a robot 206 and / or a CV module, engine, or component 202 to uniquely identify a screen element based on its relationship to other screen elements, its position within the interface, associated text labels, etc.

[0048] Anchor X (312) may be utilized to determine relationship 2 of distance 316 between Button 2 (308) and field 3044. Distance 316 between Button 2 (308) and field 3044 may be relative or absolute. Relationship 1 and Relationship 2 may be utilized by the CV module, engine, or component 202 with OCR results for robot generation or playback during runtime execution of a workflow, activity, or the like. As described herein, results of substantially all or a subset of detected elements may be provided to the robot 206 with a confidence level for each element to reduce errors and improve performance for automation.

[0049] Relationship 1 or Relationship 2 may also be utilized to update the image database 208 to update the model by the ML training module, engine, or component 210 for training or retraining. In addition to Relationship 1 and Relationship 2, the text field may be a box anchor or reference to form a relationship with an edit box for unique identification by the robot. In a configuration with two name label fields, two anchors may be used for one text box.

[0050] 4 is another illustration of multi-anchoring of a UI for an RPA 400. As an example, a window or application 402 in the UI may include a field 404. 1~4 , may include labels 1-4 for Button 1 (406) and Button 2 (408). Anchor X (410) may have coordinates (x, y, width, height) relative to the dimensions of Button 2 (408) and may be elastic to changes in UI scale, DPI, etc. The parameters x and y may be the coordinates of a vertex, and w and h may be, for example, the width and height of Button 1 (406) or Button 2 (408). In certain embodiments, it may be desirable for the geometric anchors or reference coordinates or angles to be elastic or inelastic, as described herein.

[0051] Anchor Y (412) and Anchor X (410) may be utilized for element detection within a window or application 402 in the UI by forming a triangular relationship between Button 1 (406), Field 4043, and Field 4044. The triangular relationship may be achieved or performed by determining an angle, position, or distance based geometry of Button 1 (406), Field 4043, and Field 4044. The triangular relationship may be determined or utilized by a CV module, engine, or component 202 that uses the OCR results for robot generation or playback at run-time or during execution of a workflow, activity, or the like.

[0052] FIG. 4A is another illustration of multi-anchoring of UI for RPA 420. In an application having a deposit transaction 422 of a capture UI, multiple anchors 4261-4264 may be configured to create a relationship 428 for identifying element 4242. The relationship 428 may be determined based on a geometric shape or a calculated distance to the formed element 4242 based on the multiple anchors 4261-4264. In certain embodiments, the relationship 428 may be utilized to distinguish element 4242 from elements 4241 and 4243 during automated production, runtime, execution, etc. In certain embodiments, the anchors may be set or utilized at the client while the CV module, engine, or component 202 determines the relationship 428.

[0053] In other configurations of multi-anchoring, the analysis described herein for triangular relationships may be used to form relationships using other shapes such as squares, rectangles, any N-sided polygon, or any other desired shape. Also, the N-sided polygon may be formed such that the angles between each element are elastic, and the N-sided polygon formed with the edges connecting all anchors may be scaled. In certain configurations, a text field may be a box anchor or reference to form a relationship with an edit box for robotic identification. Additionally, any relationship may act as a fingerprint, impression, template, etc., to locate or identify an element at run-time or execution time.

[0054] Referring again to FIG. 2 , the CV module, engine, or component 202 may process the returned results, including anchor or reference point information, geometry, and the like, to provide data or information of substantially all or a subset of the detected elements to an image database 208. The image database 208 may be utilized by a server, studio component, design component, and the like to label or classify the captured image or a subset of elements in the image(s) and provide it to an ML training module, engine, or component 210 for unique identification and modeling, training, retraining, deep learning, neural network operations, and the like. Model updates 212 may be provided to the CV module, engine, or component 202 for analysis for design or runtime operations to reduce duplication, reduce errors, reduce false positives, or improve RPA automation performance.

[0055] Fuzzy matching or logic may be utilized in multi-anchoring for RPA 200 to compensate for errors by OCR engines such as Google™ Cloud OCR, Microsoft™ OCR, Tessoract OCR™, etc. in text fields, text, etc. The image or a portion of the image may be sent to OCR module or engine 204 and CV module, engine, or component 202, and feedback may be sent to robot 206 with the detected type or element for reproducing the UI view. As an example, in fuzzy matching, labels 1-4 may be assigned to a list of names, respectively. In fuzzy matching, when “NAM” or “NME” is detected, it may be logically associated or matched with “NAME”. Similarly, in FIG. 3, field 304 1~4 may each be assigned to a list in the edit box. The list of possible elements may be provided to the robot 206 by the CV module, engine, or component 202 to establish relationships.

[0056] In the examples described herein, geometric matching with thresholds such as relative distances associated with anchors may be utilized for RPA of the UI. As an example, each element in an image of the UI may be associated with a confidence, threshold, matching threshold, tolerance, etc. Potential matches to elements below the threshold may be discarded for matching, etc. Using multiple anchors, possible relationship matches for elements may utilize a confidence interval (CI) such that false positives for one or more elements are reduced.

[0057] As an example, detected elements below, for example, 50%, 60%, 98%, or any parameter's CI may be discarded. The CIs, confidence thresholds, tolerance thresholds, etc. are based on ML or deep learning models that may be trained or retrained. Different CIs, confidence thresholds, tolerance thresholds, or such levels or ranges may be utilized for matching elements in the UI during development or runtime of a robot or multiple robots by an orchestrator.

[0058] For a robot that may need to choose between two elements that both meet a matching threshold, a list of elements, types, or confidences with multiple anchoring may be utilized. In certain configurations with multiple matches, multiple anchors in the UI may act as stencils or shapes to uniquely identify elements during analysis. In certain configurations using multi-anchoring, during workflow design or development, the selected UI element with the highest confidence may be displayed in the CV results, and during runtime, the possibility of all elements in the UI may be checked by CV for execution of the workflow by the robot.

[0059] In the examples given herein, the geometric thresholds of the anchors may snap horizontally or vertically with a smaller tolerance for the geometric thresholds. Anchors that snap horizontally or vertically with another element may be treated differently. For example, a smaller tolerance may be allowed for the distance the direction can move perpendicular to the snap axis. If a button is used as an anchor for a text field, text, label, or such element, the runtime may stratify such that when a connection is made to that element, other lower probability elements are connected at their respective positions or coordinates.

[0060] FIG. 5 is an explanatory diagram of a process using multi-anchoring of a UI for an RPA 500. Note that in FIG. 5, operations may be performed out of order or sub-steps not shown may be performed. An image of an area of ​​the UI may be captured by a robot for the RPA (502). After analyzing and displaying the image, the captured image and anchors may be used by a CV component and an OCR engine (504). In a particular configuration, the system may receive input of a selected element and one or more anchors stored in the workflow. A geometric relationship between elements including anchors of the UI in the captured image may be calculated (506). If a selected element is not identified, a selection using a bounding box may be used for element detection as described herein, and the model may be retrained using geometric relationships for ML (508). The UI by the RPA robot may be regenerated using the OCR results and geometric relationships (510) for execution of a workflow or activity.

[0061] Referring again to ML, the results of the CV model may include, for each captured, analyzed, scraped, or stored image, a list of possibilities for one or more elements in the image and associated ML-determined probabilities to improve accuracy, prevent false positives, improve automation performance, etc. This may be performed by the CV module, engine, or component 202 sending the image database 208 for machine training or retraining by the training module, engine, or component 210.

[0062] A user may intervene if an element of the UI is improperly identified by drawing a bounding box around the target region. The captured images may be saved to an automation file for retrieval during runtime. Additionally, in certain configurations, the captured images may be utilized to retrain the CV model since user intervention may indicate or signal that the model has missed an element.

[0063] Additionally, if the CV module, engine, or component 202 detects a missing button or subset of elements, a report of the missing elements is automatically sent to the image database 208 for machine training or retraining by the ML training module, engine, or component 210. Elements may be missing due to the failure of the ML model to identify them. This operation may be transparent to the robot 206.

[0064] For element identification, the list of possible elements may include similar alternative elements. Each possible result may be associated with a statistical CI that may be associated with an ML or deep learning model. This may be performed while selecting an object in the UI or without selecting anything. If an element is misidentified due to a click, user input, image distortion, etc., the multi-anchor algorithm may use one or more anchors to correctly determine the desired target element. For example, anchor X and anchor Y may be used to search for all elements that are checkboxes, even if the ML engine believes that at least one element is a radio button.

[0065] If an element is misidentified, other elements can be used as anchors for the analysis. For example, a radio button may be misidentified as a checkbox as the most likely match. In a ranked list with probabilities, the second or third most likely match may be the actual or correct match. Adding another anchor, such as another nearby radio button, may help identify which element a particular component is from the list of probabilities.

[0066] As another example of the operation of the autonomous vehicle computing context described herein, while detecting objects on a road using CV, criteria or rules may be set such as "if there is no person on the bike, it is not a bike" so that the object is not misidentified as a bike. The object may be a bike and the person and the road may be anchors or reference points. In a similar UI context, the fields may be targets and anchors for buttons and field labels.

[0067] 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 embedded 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. a display device configured to display a user interface (UI); a processor configured to operate a robot to automate an activity in a cloud machine environment, the robot utilizing two or more anchors in a captured image of the UI; a transceiver configured to transmit the captured image having the two or more anchors to a computer vision (CV) engine and to transmit the captured image to an optical character recognition (OCR) engine; the transceiver configured to receive results from the OCR engine and relationships determined by the CV engine based on geometric matches of label and text field elements associated with the two or more anchor and target elements within a region of the captured image, the geometric matches being associated with a confidence interval (CI); The robot performs the activity on the target element in the UI based on the relationship.

2. The computing device of claim 1 , wherein the relationship defines a geometric position between an anchor button and the label or the text field.

3. The computing device of claim 1 , wherein the captured image is from a video stream of the cloud machine environment.

4. The computing device of claim 1 , wherein the geometric match comprises an angle or triangle arrangement between one or more elements in the captured image of the UI.

5. The computing device of claim 1 , wherein the geometric matching is based on an ML model.

6. The computing device of claim 1 , wherein retraining is performed based on missing elements detected from a captured image of the UI.

7. The computing device of claim 1 , wherein the geometric match is based on elastic or inelastic geometric relationships of elements in the captured image of the UI.

8. The computing device of claim 1 , wherein a first anchor of the plurality of anchors is disposed on a first button and a second anchor of the plurality of anchors is disposed on a second button.

9. 1. A method performed by a computing device, comprising: displaying, by the computing device, a user interface (UI); operating, by the computing device, a robot to automate an activity in a cloud machine environment, the robot utilizing two or more anchors in a captured image of the UI; transmitting, by the computing device, the captured image having the two or more anchors to a computer vision (CV) engine, and transmitting, by the computing device, the captured image to an optical character recognition (OCR) engine; receiving, by the computing device, results from the OCR engine and a relationship determined by the CV engine based on a geometric match of label and text field elements associated with the two or more anchor and target elements within a region of the captured image, the geometric match being associated with a confidence interval (CI); The robot performs the activity on the target element in the UI based on the relationship.

10. The method of claim 9 , wherein the relationship defines a geometric position between an anchor button and the label or the text field.

11. The method of claim 9 , wherein the captured image is from a video stream of the cloud machine environment.

12. The method of claim 9 , wherein the geometric match includes an angle or triangle arrangement between one or more elements in the captured image of the UI.

13. The method of claim 9 , wherein the geometric matching is based on an ML model.

14. The method of claim 9 , wherein retraining is performed based on missing elements detected from a captured image of the UI.

15. The method of claim 9 , wherein the geometric match is based on elastic or inelastic geometric relationships of elements in the captured image of the UI.

16. The method of claim 9 , wherein a first anchor of the plurality of anchors is disposed on a first button and a second anchor of the plurality of anchors is disposed on a second button.

Citation Information

Patent Citations

  • Device-based visual test automation

    EP3343378A1

  • Information processor and control method thereof

    JP2013250933A

  • Scenario generation program, scenario execution program, scenario generation method, scenario execution method, scenario generation apparatus, and scenario execution apparatus

    JP2015049520A