Electronic device for analyzing application screen and operating method thereof
By generating links and UI diagrams of multiple user interface elements in the application screen and identifying the focus position, it solves the screen navigation problem of third-party applications that do not provide APIs and improves the user experience.
Patent Information
- Application Number
- CN202280087163.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-09-23
- Filing Date
- 2022-12-15
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult for existing technologies to effectively analyze and navigate third-party application screens that do not provide APIs, resulting in poor user experience.
Navigation of the application screen is realized by generating multiple links for multiple user interface elements in the application screen, generating UI diagrams of primitive actions based on these links, and identifying the focus position of user interaction.
Even in an environment that does not support API, it can provide a good user experience and improve the convenience of application by providing users with corresponding functions or services.
Smart Images

Figure CN118614070A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an electronic device for analyzing an application screen and an operating method of the electronic device. Background Art
[0002] Examples of various electronic devices including a display include a television (TV), a sign, a kiosk, etc. Various applications may be displayed on the electronic device including a display.
[0003] A user of an electronic device may navigate application screens in order to receive a specific function or service of an application desired by the user. Navigation of application screens may be performed based on a combination of primitive actions.
[0004] In order to successfully navigate an application screen, it is necessary to find out in advance how a plurality of user interface elements included in the application screen are connected to each other and where the focus is located on the current application screen. Summary of the invention
[0005] Solution to the problem
[0006] Aspects of the present disclosure are to address at least the above-mentioned problems and / or disadvantages and to provide at least the advantages described below. Therefore, one aspect of the present disclosure is to provide an electronic device for analyzing an application screen and an operating method of the electronic device.
[0007] Additional aspects will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the presented embodiments.
[0008] According to an embodiment of the present disclosure, a method for analyzing an application screen is provided. According to an embodiment of the present disclosure, the method includes generating multiple links for multiple user interface (UI) elements included in the application screen. According to an embodiment of the present disclosure, the method for analyzing an application screen may include: based on the multiple links, generating a UI diagram for each of at least one primitive action, and identifying the position of the focus of the UI element that the user will interact with among the multiple UI elements, wherein the at least one primitive action is a user input for navigating the application screen. The UI diagram may include the path through which the position of the focus moves between the multiple UI elements through the at least one primitive action.
[0009] According to an embodiment of the present disclosure, an electronic device for analyzing an application screen is provided. The electronic device includes a memory storing one or more instructions, and at least one processor configured to execute at least one instruction stored in the memory. According to an embodiment of the present disclosure, at least one processor may also be configured to generate multiple links for multiple UI elements included in the application screen. According to an embodiment of the present disclosure, at least one processor may also be configured to generate a UI diagram for each of at least one primitive action based on the multiple links, wherein the at least one primitive action is a user input for navigating the application screen. According to an embodiment of the present disclosure, at least one processor may also be configured to identify the position of the focus of the UI element that indicates the user among the multiple UI elements to interact with it. According to an embodiment of the present disclosure, the UI diagram may include the path through which the position of the focus moves between the multiple UI elements through the at least one primitive action.
[0010] According to an embodiment of the present disclosure, there is provided a non-transitory computer-readable recording medium having recorded thereon a computer program, wherein the computer program, when executed by a computer, performs at least one of the methods of analyzing an application screen disclosed above.
[0011] Other aspects, advantages, and salient features of the present disclosure will become apparent to those skilled in the art from the following detailed description which, in conjunction with the accompanying drawings, discloses various embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings, in which:
[0013] Figure 1 is a view for explaining a method of navigating an application screen performed by an electronic device according to an embodiment of the present disclosure;
[0014] Figure 2 is a flowchart of a method of analyzing an application screen performed by an electronic device according to an embodiment of the present disclosure;
[0015] Figure 3a is a diagram for describing applications and sources related to control of an electronic device according to an embodiment of the present disclosure;
[0016] Figure 3b The present invention is used to describe the primitive-based action control performed by the electronic device according to the embodiment of the present disclosure. Figure 3a A diagram describing the operation of the application and sources;
[0017] Figure 4a and Figure 4bis a diagram for explaining a control operation of an electronic device according to various embodiments of the present disclosure;
[0018] Figure 5a , Figure 5b and Figure 5c is a diagram for explaining an operation of generating an edge by using an edge generator, performed by an electronic device according to various embodiments of the present disclosure;
[0019] Figure 6 is a diagram for explaining an operation performed by an electronic device to generate a user interface (UI) diagram by using an edge labeler according to an embodiment of the present disclosure;
[0020] Figure 7a , Figure 7b and Figure 7c is a diagram for explaining an operation of recognizing a position of a focus by using a focus position estimator, performed by an electronic device according to various embodiments of the present disclosure;
[0021] Figure 8a , Figure 8b , Figure 8c and Figure 8d is a diagram for explaining a method of analyzing an application screen performed by an electronic device according to various embodiments of the present disclosure;
[0022] Fig. 9 is a block diagram of an electronic device according to an embodiment of the present disclosure; and
[0023] Fig.10 is a block diagram of a server according to an embodiment of the present disclosure.
[0024] The same reference numerals are used throughout the drawings to denote the same elements. DETAILED DESCRIPTION
[0025] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. It includes various specific details to assist in understanding, but these details are considered to be exemplary only. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and configurations may be omitted for clarity and conciseness.
[0026] The terms and words used in the following description and claims are not limited to the bibliographical meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it will be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustration purposes only and not for the purpose of limiting the present disclosure as defined by the appended claims and their equivalents.
[0027] It should be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.
[0028] Throughout the disclosure, the expression "at least one of a, b, or c" means only a, only b, only c, both a and b, both a and c, both b and c, all of a, b, and c, or variations thereof.
[0029] Since the present disclosure allows various changes and many embodiments, specific embodiments will be shown in the drawings and described in detail in the written description. However, this is not intended to limit the present disclosure to a specific mode of practice, and it should be understood that all changes, equivalents and substitutes that do not depart from the spirit and technical scope of the present disclosure are included in the present disclosure.
[0030] In the description of the embodiments of the present disclosure, some detailed explanations of the related art are omitted when it is considered that some detailed explanations of the related art may unnecessarily obscure the essence of the present disclosure. Although terms such as "first", "second", etc. can be used to describe various components, these components are not necessarily limited to the above terms. The above terms are only used to distinguish one component from another component.
[0031] When an element (for example, a first element) is “coupled to” or “connected to” another element (for example, a second element), unless otherwise stated, the first element may be directly coupled to or connected to the second element or a third element may be present therebetween.
[0032] Regarding components represented as "part (unit)" or "module" used in this specification, two or more components may be combined into one component, or one component may be divided into two or more components according to the subdivided functions. In addition, each component described below may perform some or all of the functions performed by another component in addition to performing its own main function, and some of the main functions of each component may be completely performed by another component.
[0033] As used herein, "model" and "artificial intelligence (AI) model" may refer to a set of models that are trained to perform desired properties (or purposes) using a plurality of training data through a learning algorithm. Examples of learning algorithms include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning.
[0034] The "model" and "AI model" used herein may be composed of multiple neural network layers. Each of the multiple neural network layers may have multiple weight values, and the neural network operation may be performed by the operation between the operation result of the previous layer and the multiple weight values. The multiple weight values of the multiple neural network layers may be optimized according to the learning results of the AI model. For example, the multiple weight values may be updated so that the loss value or cost value obtained from the AI model is reduced or minimized during the learning process. Examples of AI models including multiple neural network layers may include, but are not limited to, deep neural networks (DNNs), such as convolutional neural networks (CNNs), deep neural networks (DNNs), recursive neural networks (RNNs), restricted Boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recursive deep neural networks (BRDNNs), and deep Q networks.
[0035] As used herein, a "user interface (UI) element" may refer to a virtual medium through which a specific function of an application is executed through interaction with a user, such as a user's selection on an application screen. The UI element may include at least one of an icon, an image, text, or an input field. However, the UI element is not necessarily limited thereto, and may include all elements capable of interacting with a user included in an application screen.
[0036] “Navigation” used herein may refer to a process of accessing at least one of a specific function or a specific service provided by an application by interacting with a UI element of an application screen.
[0037] As used herein, "third-party applications" may refer to applications produced and distributed by a company other than the manufacturer of the electronic device executing the application or the operating system (OS) of the electronic device. A third-party application may be an application installed inside the electronic device or an application installed in an external source (e.g., a game console or set-top box) connected to the electronic device.
[0038] As used herein, "primitive actions" may refer to user inputs for navigating application screens. An electronic device or the OS of an electronic device may send primitive actions to an application to navigate an application screen. A primitive action may be a user input that can be provided to an application without going through an application program interface (API). Examples of primitive actions include, but are not limited to, "move up," "move down," "move left," "move right," "return," "return to home page," and "select click," and may include any user input that can be provided to an application without going through an API.
[0039] As used herein, "focus" may refer to an indication of an object (or area) in an application that a user interacts with. When focus is placed on a particular UI element, the user may interact with the UI element on which focus is placed. The UI element on which focus is placed may include a visual indication that allows the user to recognize that focus has been placed on the UI element.
[0040] As used herein, a "link" may refer to at least one of a connection between different UI elements or a connection between a UI element and itself.
[0041] The 'UI map' used herein may refer to information about how a plurality of UI elements included in an application screen are connected to each other and what type of primitive actions are required to move a focus according to the connections.
[0042] Figure 1 is a view for explaining a method of navigating an application screen performed by an electronic device according to an embodiment of the present disclosure.
[0043] Reference Figure 1 , the electronic device 2000 according to an embodiment of the present disclosure may include a display for outputting at least one of an image or a moving picture. Examples of the electronic device 2000 may include, but are not limited to, a smart TV, a smart phone, a sign, an information kiosk, a tablet personal computer (PC), a laptop PC, and a frame-type display, and the electronic device 2000 may be implemented as any of various types or shapes including a display.
[0044] According to an embodiment of the present disclosure, the electronic device 2000 may navigate the application screen based on user input. For example, the electronic device 2000 is currently executing the Y application as the current video application, and may receive a user input in the form of a voice signal "show episode 7 of drama B in the Y application", or may receive a user input of selecting the thumbnail image 113 of episode 7 of drama B through at least one of touch or separate pointer manipulation. The electronic device 2000 may display the playback screen 120 of episode 7 of drama B by navigating the Y application based on the received user input.
[0045] According to an embodiment of the present disclosure, applications executed by the electronic device 2000 may be classified into system applications directly controlled by the OS of the electronic device 2000 and third-party applications controlled by the OS of the electronic device 2000 through an API.
[0046] According to an embodiment of the present disclosure, the electronic device 2000 may request at least one of specific functions or services from a third-party application through an API, and the third-party application may perform at least one of the specific functions or services in response to the request.
[0047] According to an embodiment of the present disclosure, an API of a third-party application may not be provided, or an API of a third-party application may not be called by the electronic device 2000. In this case, the electronic device 2000 may only provide primitive actions to the electronic device, and may not directly request at least one of the functions or services that can be requested through the API from the third-party application. Alternatively, the electronic device 2000 may navigate the application screen based on the primitive actions, and may indirectly request at least one of the functions or services from the third-party application. Therefore, the third-party application may indirectly execute at least one of the requested functions or services by performing an operation corresponding to the primitive action provided by the electronic device 2000.
[0048] According to another embodiment of the present disclosure, when navigating an application screen based on a primitive action, the electronic device 2000 may navigate the application based on a UI map and a focus position. The UI map may include a path through which the focus position moves between multiple UI elements through at least one primitive action.
[0049] For example, suppose that currently Figure 1 The Y application executed in the electronic device 2000 is a third-party application, and the API of the Y application is not provided to the OS of the electronic device 2000. In order for the OS of the electronic device 2000 to receive at least one of the functions or services corresponding to "showing the 7th episode of B drama in the Y application" from the Y application, the Y application needs to be navigated using only primitive actions. In this case, the electronic device 2000 may plan to navigate the Y application screen based on a UI diagram including a path through which the focus position moves through primitive actions, wherein on the Y application screen, the position of the current focus is the original label 111, and the Y application screen is used to select the thumbnail image 113 of the 7th episode of the B drama. Therefore, in response to receiving the user input "showing the 7th episode of B drama in the Y application", the electronic device 2000 may provide the corresponding primitive actions "move down", "move right" and "select click" to the third-party application, and the third-party application may provide the electronic device 2000 with the playback screen 120 of the 7th episode of the B drama by performing operations corresponding to the received primitive actions.
[0050] Like this, in order for the electronic device 2000 to navigate in a third-party application that does not provide an API, it is important to recognize a UI map and a focus position.
[0051] Therefore, the electronic device 2000 according to various embodiments of the present disclosure may generate a plurality of links for a plurality of UI elements included in an application screen. The electronic device 2000 may generate a UI diagram for at least one primitive action based on the plurality of links, wherein the at least one primitive action is a user input for navigating the application screen. The electronic device 2000 may identify a position indicating a focus of a UI element with which a user will interact among the plurality of UI elements.
[0052] As described above, the electronic device 2000 according to various embodiments of the present disclosure can generate a UI diagram and identify the position of the focus from the application screen to plan the navigation application screen. Therefore, even in an environment that does not support the API, by providing the user with at least one of the functions or services corresponding to the user input, the user can feel a better application usage experience.
[0053] Operations of generating a UI map and recognizing a focus position, performed by the electronic device 2000, will now be described in detail with reference to drawings described later.
[0054] Figure 2 is a flowchart of a method of analyzing an application screen performed by an electronic device according to an embodiment of the present disclosure.
[0055] Reference Figure 2 , in operation S210, the electronic device 2000 may generate a plurality of links for a plurality of UI elements included in an application screen.
[0056] According to an embodiment of the present disclosure, the application screen may include an execution screen of a third-party application. The application screen may include an execution screen of a third-party application executed in at least one of the electronic devices 2000 or an execution screen of a third-party application received from an external electronic device.
[0057] According to an embodiment of the present disclosure, an application screen may be an application screen for each of a plurality of time points, wherein the application screen for each of the plurality of time points is distinguished based on the time point at which at least one primitive action is executed. For example, the application screen may include an application screen at a first time point, an application screen at a second time point, and an application screen at a third time point, wherein the second time point is the next time point when the first primitive action is executed on the application screen at the first time point, and the third time point is the next time point when the second primitive action is executed on the application screen at the second time point.
[0058] According to an embodiment of the present disclosure, the application screen may be a screen included in the application screen history. The application screen history may include a screen displayed on the electronic device 2000 or displayed on an external electronic device.
[0059] According to an embodiment of the present disclosure, the application screen history may include a plurality of application screens stored at predetermined time intervals and a plurality of application screens stored each time a primitive action is performed.
[0060] According to an embodiment of the present disclosure, at least one primitive action serving as a basis for distinguishing respective application screens for a plurality of time points may be a primitive action included in a primitive action history.
[0061] According to an embodiment of the present disclosure, the primitive action history may include information about a plurality of primitive actions previously executed. The plurality of primitive actions previously executed may refer to primitive actions sent to a third-party application. For example, the primitive action history may include information about what primitive actions have been executed and how the position of the focus has been moved by the executed primitive actions.
[0062] According to an embodiment of the present disclosure, the application screen history and the primitive action history may have a mapping relationship between them. In detail, each of the primitive actions included in the primitive action history may be mapped to each of the application screens included in the application screen history immediately after the primitive action is executed.
[0063] According to an embodiment of the present disclosure, the electronic device 2000 may identify multiple UI elements based on an application screen. The electronic device 2000 may generate multiple nodes corresponding to the identified multiple UI elements. The electronic device 2000 may generate edges for multiple nodes corresponding to multiple links. Multiple nodes may refer to vertices of graph data. The edges may include links for the nodes themselves and links between different nodes, and the links included in the edges may correspond to links for multiple UI elements corresponding to the multiple nodes.
[0064] According to an embodiment of the present disclosure, the electronic device 2000 may extract node features for generating links from multiple UI elements. The node features may include at least one of the features of the size, content, image, name, and hierarchy of the multiple UI elements. However, the features included in the node features are not necessarily limited thereto, and may include all features that can be used to generate links from UI elements.
[0065] According to an embodiment of the present disclosure, the electronic device 2000 may generate a plurality of links for a plurality of UI elements by connecting each of the plurality of recognized user interface elements to themselves and / or by connecting between different recognized user interface elements.
[0066] In operation S220, the electronic device 2000 may generate a UI diagram for at least one primitive action based on the plurality of links, wherein the at least one primitive action is a user input for navigating an application screen.
[0067] According to an embodiment of the present disclosure, the electronic device 2000 may generate a UI diagram for each of at least one primitive action based on multiple links. The electronic device 2000 may map at least one primitive action to each of the multiple links, and may generate a UI diagram based on what primitive action is mapped to each of the multiple links, wherein the UI diagram includes a path through which the focus moves between multiple UI elements through the primitive action.
[0068] Refer again Figure 1, the electronic device 2000 may map the primitive action "move down-move up" to a link connecting the UI element "original label 110" to the UI element "thumbnail 112 of the 10th episode of drama A". In this case, the electronic device 2000 may generate a UI diagram including the following path: the focus on the "original label 110" is moved to the "thumbnail 112 of the 10th episode of drama A" through the primitive action "move down", and the focus on the "thumbnail 112 of the 10th episode of drama" is moved to the "original label 110" through the primitive action "move up".
[0069] In operation S230 , the electronic device 2000 identifies a position of a focus indicating a UI element with which a user is to interact among a plurality of UI elements.
[0070] According to an embodiment of the present disclosure, the electronic device 2000 can identify the position of the focus from the application screen at the last time point based on the respective application screens at multiple time points and at least one primitive action performed before the last time point among the multiple time points, wherein the respective application screens at the multiple time points are distinguished based on the time points at which at least one primitive action has been performed.
[0071] According to an embodiment of the present disclosure, the electronic device 2000 may extract a focus feature from a plurality of UI elements included in an application screen, and may identify a position of a focus from the application screen based on the extracted focus feature.
[0072] According to an embodiment of the present disclosure, the focus feature may include a feature associated with a focus position that can be obtained from the UI. For example, the focus feature may include a feature indicated by a visual indication, such as outlining a focused UI element in bold or changing the color of the UI element, which allows the user to recognize that the focus is placed on the UI element.
[0073] Figure 3a is a diagram for describing applications and sources related to control of an electronic device according to an embodiment of the present disclosure.
[0074] Reference Figure 3a , the electronic device 2000 may obtain a user input from a user for control (eg, screen control) performed by the electronic device 2000 , and execute a control command corresponding to the user input.
[0075] According to an embodiment of the present disclosure, the third party application 310 may be executed by the electronic device 2000. For example, the third party application 310 executed by the electronic device 2000 may be, for example, an over-the-top (OTT) media service application, a video application, a game application, etc., but is not limited thereto.
[0076] According to an embodiment of the present disclosure, an external source 320 may be connected to the electronic device 2000 to be used. The external source 320 may include a device connected to the electronic device 2000 in at least one of a wired manner or a wireless manner to provide content to the electronic device 2000. When the external source 320 is connected to the electronic device 2000, the external source 320 may provide content, media, applications, etc. to the electronic device 2000. For example, the external source 320 may include a game console, a set-top box, a desktop PC, a laptop PC, etc., but is not limited thereto.
[0077] The electronic device 2000 according to an embodiment of the present disclosure can control at least one of any application or device. Figure 3b A case where a user of the electronic device 2000 generally controls at least one of any application or device is described.
[0078] Figure 3b is used to describe the control based on primitive actions performed by the electronic device according to an embodiment of the present disclosure. Figure 3a A diagram describing the operation of applications and sources.
[0079] Reference Figure 3b , the electronic device 2000 may display the execution screen of the third-party application that does not provide an API or cannot be called. In this case, the electronic device 2000 may control the third-party application and the source based on the primitive action.
[0080] According to an embodiment of the present disclosure, the electronic device 2000 may receive a primitive action from a user input device. The user input device may include a remote controller 330, and the electronic device 2000 may receive a primitive action from the remote controller 330. The remote controller 330 may include a plurality of buttons, and some of the plurality of buttons may correspond to primitive actions 340, respectively. The user may input a primitive action to the electronic device 2000 via a plurality of buttons of the remote controller 330 corresponding to the primitive actions 340. In the above example, the user input device is described as the remote controller 330. However, the embodiments of the present disclosure are not limited thereto, and the user input device may include any device capable of sending information indicating that a primitive action has been selected to the electronic device 2000.
[0081] According to an embodiment of the present disclosure, the electronic device 2000 may navigate a third-party application based on a primitive action received from a user input device.
[0082] For example, when the first execution screen 350 of the Y application is displayed on the electronic device 2000 and the user selects the button 341 of the remote controller 330 corresponding to the primitive action "move down", the remote controller 330 may transmit information indicating that the primitive action "move down" has been selected to the electronic device 2000. The electronic device 2000 may transmit the received primitive action "move down" to the Y application, and the Y application may transmit the second execution screen 360 in which the position of the focus has been moved from the first execution screen 350 to the electronic device 2000. Therefore, the second execution screen 360 may be displayed on the electronic device 2000. In this way, when the user selects the button 342 of the remote controller 330 corresponding to the primitive action "move right" from the second execution screen 360, the electronic device 2000 may display the third execution screen 370.
[0083] According to an embodiment of the present disclosure, the electronic device 2000 may include a plurality of third-party application screens displayed on the electronic device 2000 in the application screen history. The electronic device 2000 may include a plurality of primitive actions provided to the third-party application in the primitive action history.
[0084] Like this, the electronic device 2000 may receive a user input selecting a primitive action, and thus may control or navigate a third-party application that is not provided with an API. The application screen displayed on the electronic device 2000 and the primitive action received by the electronic device 2000 may be stored in the electronic device 2000. When the electronic device 2000 generates a UI diagram or recognizes a focus position, the application screen and the primitive action may be used.
[0085] Figure 4a and Figure 4b is a diagram for explaining a control operation of an electronic device according to various embodiments of the present disclosure.
[0086] Reference Figure 4a and Figure 4b , the electronic device 2000 may perform a control operation of the electronic device 2000 (e.g., analysis of an application screen) by using various software modules. For example, the electronic device 2000 may generate a UI diagram 450 by using a UI diagram generator 430. The electronic device 2000 may identify a focus position 460-1 and a focus position 460-2 by using a focus position estimator 440. However, the aforementioned software modules are shown to be distinguished only to describe their respective functions, and thus embodiments of the present disclosure are not limited thereto.
[0087] According to an embodiment of the present disclosure, the electronic device 2000 may obtain at least one of a plurality of application screens included in the application screen history 410. The application screen history 410 may be generated based on an application screen displayed on the electronic device 2000 or may be generated and received by an external electronic device and may be transmitted to the electronic device 2000.
[0088] According to an embodiment of the present disclosure, the electronic device 2000 may generate a plurality of links for a plurality of UI elements included in an application screen by using the UI map generator 430, and may generate a UI map 450 for at least one primitive action for navigating the application screen based on the plurality of links.
[0089] According to an embodiment of the present disclosure, the UI graph generator 430 may include an edge generator 431 and an edge labeler 432 .
[0090] According to an embodiment of the present disclosure, the edge generator 431 may identify multiple UI elements based on the application screen. The edge generator 431 may generate multiple nodes corresponding to the multiple UI elements. The edge generator 431 may generate multiple links based on node features of the multiple nodes.
[0091] According to an embodiment of the present disclosure, the edge tagger 432 may map at least one primitive action to each of the plurality of links. The edge tagger 432 may generate a UI graph 450 for each of the at least one primitive action based on the result of mapping of the at least one primitive action.
[0092] According to an embodiment of the present disclosure, the electronic device 2000 may identify focus positions 460 - 1 and 460 - 2 indicating UI elements selected by at least one primitive action from an application screen by using the focus position estimator 440 .
[0093] According to an embodiment of the present disclosure, the focus position estimator 440 may identify a focus position 460-1 and a focus position 460-2 from the application screen at the last time point based on the respective application screens at the plurality of time points and at least one primitive action executed before the last time point among the plurality of time points, wherein the respective application screens at the plurality of time points are distinguished based on the time points at which at least one primitive action has been executed. The respective application screens at the plurality of time points may be included in the application screen history 410. The executed at least one primitive action may be included in the primitive action history 420.
[0094] According to an embodiment of the present disclosure, when a graph-based focus position recognition model is used, the focus position estimator 440 may recognize the position of the focus by using the UI graph 450. For example, Figure 4aAs shown, focus position estimator 440 may identify focus position 460 - 1 based on application screen history 410 , primitive action history 420 , and UI map 450 .
[0095] According to an embodiment of the present disclosure, when a vision-based focus position recognition model is used, the focus position estimator 440 may not recognize the position of the focus by using the UI map 450. For example, Figure 4b As shown, the focus position estimator 440 may identify the focus position 460 - 2 based on the application screen history 410 and the primitive action history 420 .
[0096] Figure 5a , Figure 5b and Figure 5c is a diagram for explaining an operation of generating an edge by using an edge generator performed by an electronic device according to various embodiments of the present disclosure. Figure 5a , Figure 5b and Figure 5c Describe in more detail the above reference Figure 4a and Figure 4b The operation of edge generator 431 is described.
[0097] Reference Figure 5a , Figure 5b and Figure 5c , the edge generator 431 may obtain the application screen 521 , where a plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 included in the application screen 510 are detected from the application screen 521 using the object detector 520 .
[0098] The object detector 520 may generate a plurality of bounding boxes 521 - 1 , 521 - 2 , and 521 - 3 corresponding to the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 included in the application screen 510 .
[0099] According to an embodiment of the present disclosure, the object detector 520 may identify a plurality of UI elements 511-1, 511-2, and 511-3 included in the application screen 510. The object detector 520 may generate a plurality of bounding boxes 521-1, 521-2, and 521-3 corresponding to the identified plurality of UI elements 511-1, 511-2, and 511-3. Since bounding boxes may be generated overlappingly for one UI element, the object detector 520 may generate a plurality of bounding boxes 521-1, 521-2, and 521-3 corresponding to the plurality of UI elements 511-1, 511-2, and 511-3 by object merging of the overlapping generated bounding boxes.
[0100] According to an embodiment of the present disclosure, object detector 520 may be a model trained to detect a plurality of UI elements 511-1, 511-2, and 511-3 included in application screen 510 by receiving application screen 510. Examples of object detector 520 may include, but are not limited to, an AI model based on optical character recognition (OCR) and an AI model based on a regional convolutional neural network (RCNN).
[0101] According to an embodiment of the present disclosure, when there are multiple application screens, the object detector 520 can respectively identify multiple UI elements for the multiple application screens, and can generate multiple bounding boxes corresponding to the identified multiple UI elements. Therefore, multiple application screens from which multiple UI elements have been detected can be generated.
[0102] The edge generator 431 may generate node data 531 through a node generation operation S530, wherein the node data 531 includes a plurality of nodes 532-1, 532-2, and 532-3 corresponding to the plurality of UI elements 511-1, 511-2, and 511-3. For example, based on the application screen 521 including the plurality of bounding boxes 521-1, 521-2, and 521-3, the edge generator 431 may generate a first node 532-1 corresponding to the first UI element 511-1, a second node 532-2 corresponding to the second UI element 511-2, and a third node 532-3 corresponding to the third UI element 511-3. The plurality of nodes 532-1, 532-2, and 532-3 may correspond to the plurality of UI elements 511-1, 511-2, and 511-3 serving as the basis of the plurality of bounding boxes 521-1, 521-2, and 521-3, respectively.
[0103] According to an embodiment of the present disclosure, the node data 531 may include information about each node feature of the plurality of nodes 532-1, 532-2, and 532-3. The node data 531 may also include each index value for identifying the plurality of nodes 532-1, 532-2, and 532-3. In this case, the index values of the plurality of nodes may correspond to the index values respectively assigned to the plurality of UI elements 511-1, 511-2, and 511-3 included in the application screen 510.
[0104] According to an embodiment of the present disclosure, when there are a plurality of application screens from which a plurality of UI elements have been detected, the edge generator 431 may generate a plurality of nodes corresponding to all bounding boxes included in each of the plurality of application screens.
[0105] According to an embodiment of the present disclosure, the edge generator 431 may identify a bounding box included in different application screens but corresponding to the same UI element. When a node corresponding to the identified bounding box exists in the node data, the edge generator 431 may generate the node without duplication. Therefore, the edge generator 431 may generate a node corresponding to a UI element included in a specific application screen but not included in other application screens.
[0106] Reference Figure 5a and Figure 5b , the edge generator 431 may generate fully connected edges 541 for multiple nodes through the node connection operation S540. The fully connected edges 541 may include links 542-1, 542-2, and 542-3 between multiple UI elements and themselves, and all links 543-1, 543-2, and 543-3 between different UI elements.
[0107] Reference Figure 5a , the edge generator 431 may generate a plurality of links 562-1, 562-2, 562-3, 563-1, and 563-3 for the plurality of UI elements 511-1, 511-2, and 511-3 by using the link removal model 550. Here, each of the plurality of links 562-1, 562-2, 562-3, 563-1, and 563-3 may correspond to each of the plurality of links 542-1, 542-2, 542-3, 543-1, and 543-3 that fully connect the edge 541.
[0108] According to an embodiment of the present disclosure, the edge generator 431 may remove at least one link 543-2 from the multiple links 542-1, 542-2, 542-3, 543-1, 543-2, and 543-3 included in the fully connected edge 541. In this case, the multiple links 542-1, 542-2, 542-3, 543-1, and 543-3 for the multiple UI elements 511-1, 511-2, and 511-3 may not be removed, and the remaining link 543-2 may be removed.
[0109] According to an embodiment of the present disclosure, the link removal model 550 may be a model trained to perform the following operations: generating multiple links 562-1, 562-2, 562-3, 563-1, and 563-3 by receiving node features of multiple nodes 532-1, 532-2, and 532-3 and fully connected edges 541 of multiple nodes and removing at least one link 542-1 from the fully connected edges 541. In this case, the multiple links 562-1, 562-2, 562-3, 563-1, and 563-3 may be included in the edge 560 for the multiple nodes 532-1, 532-2, and 532-3.
[0110] According to an embodiment of the present disclosure, the node feature may include at least one of features regarding size, position, content, image, name, and hierarchy of the plurality of UI elements 511-1, 511-2, and 511-3 corresponding to the plurality of nodes 532-1, 532-2, and 532-3.
[0111] According to an embodiment of the present disclosure, the edge generator 431 may obtain node features by using the object detector 520. However, this is only an example, and the edge generator 431 may obtain node features using a separate model trained to obtain node features by receiving an application screen.
[0112] According to an embodiment of the present disclosure, the edge generator 431 may obtain features regarding the sizes and positions of the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 by identifying the sizes and positions of bounding boxes corresponding to the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 .
[0113] According to an embodiment of the present disclosure, the edge generator 431 may classify multiple UI elements 511-1, 511-2, and 511-3 by icons, images, texts, buttons, etc., and may assign a specific layer to each of the classification categories, thereby obtaining characteristics regarding the hierarchy of multiple UI elements 511-1, 511-2, and 511-3.
[0114] According to an embodiment of the present disclosure, when the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 include images, the edge generator 431 may extract various features obtainable from the images, thereby obtaining features of the images regarding the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 .
[0115] According to an embodiment of the present disclosure, the edge generator 431 may identify whether the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 are UI elements regarding content, thereby obtaining features regarding the content of the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 .
[0116] According to an embodiment of the present disclosure, when the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 include text, the edge generator 431 may recognize the content of the text through character recognition, thereby obtaining features regarding the text of the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 .
[0117] According to an embodiment of the present disclosure, when the edge generator 431 obtains node features from the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 , information about the obtained node features may be stored as node data 531 .
[0118] Reference Figure 5b, the edge generator 431 may omit the above reference Figure 5a The operation of removing at least one link included in the fully connected edge 541 by using the link removal model 550 is described, and a plurality of links 541-1, 541-2, 541-3, 542-1, 542-2, and 542-3 may be generated for a plurality of UI elements 511-1, 511-2, and 511-3.
[0119] According to an embodiment of the present disclosure, when the number of links generated in the node connection operation S540 is not large, it may not be necessary to remove at least one link among the generated multiple links using the link removal model 550. Therefore, when the number of UI elements identified from the application screen 510 is less than a preset number and / or the number of generated links is less than a preset number, the edge generator 431 may determine not to use the link removal model 550.
[0120] According to an embodiment of the present disclosure, there may be a case where it is difficult to use the link removal model 550 due to limitations caused by, for example, lack of computing power of the hardware of the electronic device 2000. Therefore, the edge generator 431 may determine not to use the link removal model 550 based on the computing power of the hardware of the electronic device 2000.
[0121] According to an embodiment of the present disclosure, when the edge generator 431 determines not to use the link removal model 550, the edge generator 431 may generate a fully connected edge 541 through a node connection operation S540, and may not remove at least one link included in the fully connected edge 541. In this case, the plurality of links 541-1, 541-2, 541-3, 542-1, 542-2, and 542-3 included in the fully connected edge 541 may be a plurality of links for the plurality of UI elements 511-1, 511-2, and 511-3.
[0122] In this way, the electronic device 2000 according to an embodiment of the present disclosure can generate multiple links by generating a fully connected edge 541 and removing or not removing at least one link included in the fully connected edge 541. Therefore, the application screen can be analyzed in a manner optimized for the computing power of the hardware of the electronic device 2000.
[0123] Reference Figure 5c , the edge generator 431 may generate a plurality of links 572 , 574 , and 576 for the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 by using the link generation model 570 .
[0124] According to an embodiment of the present disclosure, the link generation model 570 may be a model trained to perform the following operations: hierarchical clustering 571 is performed for a plurality of nodes 532-1, 532-2, and 532-3 by receiving node features and a plurality of nodes 532-1, 532-2, and 532-3, and in each operation of the hierarchical clustering 571, a plurality of links 572, 574, and 576 for a plurality of UI elements 511-1, 511-2, and 511-3 are generated by connecting nodes clustered in the same layer to each other. In this case, the plurality of links 572, 574, and 576 may be included in the edge 580 for the plurality of nodes 532-1, 532-2, and 532-3.
[0125] According to an embodiment of the present disclosure, the link generation model 570 may perform hierarchical clustering step by step based on a similarity matrix. The similarity matrix may include the similarity of multiple nodes (or multiple clusters) relative to other nodes (or clusters) other than itself. The similarity matrix may be calculated based on the distance between feature vectors including node features of multiple nodes. Examples of the distance between feature vectors may include, but are not limited to, Euclidean distance, statistical distance, and Minkowski distance.
[0126] According to an embodiment of the present disclosure, the link generation model 570 may allow a plurality of nodes whose similarity of similarity matrix is equal to or greater than a preset value to be clustered in the same layer. The link generation model 570 may generate links by connecting nodes clustered in the same layer to each other.
[0127] According to an embodiment of the present disclosure, when different clusters to which a plurality of nodes belong are clustered in the same layer during hierarchical clustering, the link generation model 570 may connect at least one of the plurality of nodes belonging to each cluster to at least one of the plurality of nodes belonging to another cluster. Whether a node among the plurality of nodes belonging to each cluster is connected to a node belonging to another cluster may be determined based on similarity between the nodes.
[0128] For example, Figure 5c As shown, the link generation model 570 may generate a plurality of first links 572 representing connections between the plurality of UI elements 511 - 1 , 511 - 2 , and 511 - 3 and themselves.
[0129] The link generation model 570 may perform clustering based on the first similarity matrix 573. The values of the components of the first row and second column and the values of the components of the second row and first column of the first similarity matrix 573 may refer to the similarity between the first node 532-1 and the second node 532-2, the values of the components of the first row and third column and the values of the components of the third row and first column of the first similarity matrix 573 may refer to the similarity between the first node 532-1 and the third node 532-3, and the values of the components of the second row and third column and the values of the components of the third row and second column of the first similarity matrix 573 may refer to the similarity between the second node 532-2 and the third node 532-3.
[0130] The link generation model 570 may allow the first node 532-1 and the second node 532-2 whose similarity in the first similarity matrix 573 is equal to or greater than a threshold to be clustered in the same layer. The link generation model 570 may generate a second link 574 by connecting the first node 532-1 and the second node 532-2 clustered in the same layer to each other.
[0131] The link generation model 570 may perform clustering based on the second similarity matrix 575. The values of the first row and second column components and the values of the second row and first column components of the second similarity matrix 575 may refer to the similarity between the cluster to which the first node 532-1 and the second node 532-2 belong and the third node 532-3.
[0132] The link generation model 570 may allow the cluster to which the first node 532-1 and the second node 532-2, whose similarity in the second similarity matrix 575 is equal to or greater than a threshold, and the third node 532-3 to be clustered in the same layer. The link generation model 570 may generate a third link 576 by connecting the cluster to which the first node 532-1 and the second node 532-2 belong and the third node 532-3 clustered in the same layer to each other.
[0133] Like this, the electronic device 2000 according to an embodiment of the present disclosure can determine the connectivity between multiple UI elements by performing clustering in a bottom-up manner, thereby generating multiple links. Therefore, unlike other clustering methods, the electronic device 2000 can train the link generation model 570 without predetermining the number of clusters. In addition, compared with other clustering methods, the computational cost required for clustering can be reduced.
[0134] Figure 6 is a diagram for explaining an operation of generating a UI diagram by using an edge labeler performed by an electronic device according to an embodiment of the present disclosure. Figure 6 Describe in more detail the above reference Figure 4a and Figure 4b The operation of edge tagger 432 is described.
[0135] Reference Figure 6 According to an embodiment of the present disclosure, the edge tagger 432 may map at least one primitive action to each of the plurality of links 611-1, 611-2, 611-3, 612-1, 612-2, and 612-3 included in the edge 610. The edge 610 may refer to an edge generated by the edge generator 431. For example, the edge 610 may be Figure 5a The edge 560, Figure 5b The edge 541 or Figure 5c The side is 580.
[0136] According to an embodiment of the present disclosure, the edge tagger 432 may map at least one primitive action to each of the plurality of links 611 - 1 , 611 - 2 , 611 - 3 , 612 - 1 , 612 - 2 , and 612 - 3 based on information about a plurality of primitive actions previously performed.
[0137] In detail, the edge tagger 432 may map at least one primitive action to each of the plurality of links 611 - 1 , 611 - 2 , 611 - 3 , 612 - 1 , 612 - 2 , and 612 - 3 to correspond to information on how the focus position is moved by the executed primitive action.
[0138] For example, the edge tagger 432 may map the primitive actions "move left" and "move up" to the first link 611-1 based on information indicating that the position of the focus on the UI element corresponding to the 0th node has not changed when the primitive actions "move left" and "move up" have been executed. The edge tagger 432 may map the primitive action "move right" to the second link 612-1 based on information indicating that the focus on the UI element corresponding to the 0th node has moved to the UI element corresponding to the 1st node when the primitive action "move right" has been executed. The edge tagger 432 may map the primitive action "move left" to the fourth link 612-1 based on information indicating that the focus on the UI element corresponding to the 1st node has moved to the UI element corresponding to the 0th node when the primitive action "move left" has been executed.
[0139] According to an embodiment of the present disclosure, the edge labeler 432 may map at least one primitive action to each of the plurality of links 611 - 1 , 611 - 2 , 611 - 3 , 612 - 1 , 612 - 2 , and 612 - 3 based on node features of the plurality of nodes.
[0140] In detail, edge tagger 432 may identify positional relationship information of multiple UI elements corresponding to multiple nodes based on information about the size and position of the UI elements. Edge tagger 432 may identify at least one UI element that is likely to be mapped to each of multiple links 611-1, 611-2, 611-3, 612-1, 612-2, and 612-3 based on the positional relationship information. Edge tagger 432 may map the identified at least one UI element to each of multiple links 611-1, 611-2, 611-3, 612-1, 612-2, and 612-3. The positional relationship information may include information about which UI elements exist in a direction corresponding to a primitive action based on a specific UI element.
[0141] According to an embodiment of the present disclosure, the edge tagger 432 may generate a UI graph 630 for each of the at least one primitive action based on the result 631 of the mapping of the at least one primitive action. In other words, the edge tagger 432 may generate a UI graph 630 for each of the at least one primitive action based on which primitive action has been mapped to each of the plurality of links 611-1, 611-2, 611-3, 612-1, 612-2, and 612-3.
[0142] According to an embodiment of the present disclosure, the UI diagram 630 may include information about which primitive action is required for the focus to move along the plurality of links 611-1, 611-2, 611-3, 612-1, 612-2, and 612-3 included in the edge 610. For example, based on the result 631 of mapping of at least one primitive action, the UI diagram 630 may include information indicating that the focus needs to move along the first link 611-1. The primitive action "move left" or "move up" is required.
[0143] According to an embodiment of the present disclosure, the UI diagram 630 may include information about the direction in which the focus moves along the multiple links 611-1, 611-2, 611-3, 612-1, 612-2, and 612-3 through at least one primitive action. For example, the UI diagram 630 may include information indicating that the focus moves from the 0th node to the 1st node through the primitive action "move right" mapped to the second link 612-1, and the focus moves from the 1st node to the 0th node through the primitive action "move left" mapped to the second link.
[0144] According to an embodiment of the present disclosure, the UI diagram 630 may generate each adjacency matrix 632 for at least one primitive action. A plurality of rows and a plurality of columns of the adjacency matrix may correspond to each of a plurality of nodes included in the UI diagram 630.
[0145] According to an embodiment of the present disclosure, the components of the adjacency matrix may have a value of 0 or 1 generated by a unique hot encoding scheme. In this case, the components of the adjacency matrix may refer to whether the focus can be moved from the node corresponding to the row of the component to the node corresponding to the column of the component through each primitive action. For example, when the component of the first row of the adjacency matrix of the primitive action "Move Right" is (0,1,0), this may represent information indicating that the focus located on the 0th node is moved to the 1st node through the primitive action "Move Right", but not to the 0th node and the 2nd node.
[0146] According to an embodiment of the present disclosure, the components of the adjacency matrix may have values corresponding to the transition probabilities. In this case, the components of the adjacency matrix may refer to the probability that the focus can move from the node corresponding to the row of the component to the node corresponding to the column of the component through each primitive action. For example, when the components of the first row of the adjacency matrix of the primitive action "move right" are (0.2, 0.7, 0.1), this may represent information indicating the following: the probability that the focus at the 0th node remains at the 0th node through the primitive action "move right" is 20%, the probability that the focus at the 0th node moves to the 1st node through the primitive action "move right" is 70%, and the probability that the focus at the 0th node moves to the 2nd node through the primitive action "move right" is 10%.
[0147] According to an embodiment of the present disclosure, the edge labeler 432 may be a model trained to receive the edge 610 and output each adjacency matrix 632 for the primitive action based on the received edge 610. The edge labeler 432 may include an AI model based on multi-head attention. In this case, parallel attention corresponding to each of the at least one primitive action may be performed, and the adjacency matrix 632 for the at least one primitive action may be generated based on the attention score generated by each of the parallel attentions.
[0148] According to an embodiment of the present disclosure, the edge labeler 432 may be trained using an edge data set as a training data set, in which at least one primitive action included in the primitive action history is mapped to a plurality of links.
[0149] Figure 7a , Figure 7b and Figure 7c is a diagram for explaining an operation of recognizing a position of a focus by using a focus position estimator performed by an electronic device according to various embodiments of the present disclosure. Figure 7a , Figure 7b and Figure 7c Describe in more detail the above reference Figure 4a and Figure 4b The operation of the focus position estimator 440 is described.
[0150] According to an embodiment of the present disclosure, the focus position estimator 440 may identify the focus position 731 by using at least one of a graphic-based focus position recognition model 730 or a vision-based focus position recognition model 740. The graphic-based focus position recognition model 730 and the vision-based focus position recognition model 740 may generate information about the position of the focus based on application screens 720 for multiple time points and at least one executed primitive action 710, wherein the application screens 720 for multiple time points are distinguished based on the time points at which at least one primitive action is executed. The application screens 720 for multiple time points may be application screens included in the application screen history. The at least one executed primitive action 710 may be a primitive action included in the primitive action history.
[0151] Reference Figure 7a , the focus position estimator 440 may identify the focus position 731 by using the graph-based focus position recognition model 730. The graph-based focus position recognition model 730 may include: a feature extraction model 750 for outputting first focus feature matrices 751, 752, and 753 for a plurality of time points including focus features; a feature attention model 770 for outputting second focus feature matrices 771 and 772 emphasizing the focus features; and a feature comparison model 780 for outputting a probability 732-2 that the focus will be located on each of the plurality of nodes.
[0152] Feature extraction model 750 may extract focus features from multiple UI elements included in each of application screens 720 for multiple time points. The focus feature may include features associated with the position of the focus obtained from the multiple UI elements. For example, the focus feature may be a feature for a user to recognize that a specific user interface element among multiple user interface elements is focused on.
[0153] According to an embodiment of the present disclosure, the application screens 720 for multiple time points may be application screens distinguished based on the time points at which at least one primitive action 710 has been previously executed. For example, when the primitive action "move left" 711 is executed on the application screen 721 at the first time point (t = T-2a), the application screen 722 at the second time point (t = Ta) may be displayed, and when the primitive action "move down" 712 is executed on the application screen 722 at the second time point, the application screen 723 at the third time point (t = T) may be displayed. When no primitive action is executed after the third time point, the third time point may be the last time point.
[0154] The feature extraction model 750 may output first focus feature matrices 751 , 752 , and 753 for a plurality of time points by mapping the extracted focus features to nodes corresponding to a plurality of UI elements included in the application screen.
[0155] According to an embodiment of the present disclosure, the feature extraction model 750 may be based on the features detected from the Figure 5a , Figure 5b and Figure 5c The focus feature may be extracted from an application screen 521 of multiple UI elements generated by the object detector 520, and first focus feature matrices 751, 752, and 753 for multiple time points may be generated based on the node data 531 generated in the node generating operation S530.
[0156] According to an embodiment of the present disclosure, the feature extraction model 750 may be a model trained to perform the following operations: extracting a focus feature from each of the multiple application screens 721, 722, and 723 by receiving the multiple application screens 721, 722, and 723, and outputting the first focus feature matrices 751, 752, and 753 for multiple time points by mapping the focus feature to a node corresponding to the UI element from which the focus feature is obtained. In this case, the feature extraction model 750 may extract focus features from the multiple UI elements included in the application screens 721, 722, and 723 for multiple time points through the same learning weight. Examples of the feature extraction model 750 may include, but are not limited to, a ResNet-based AI model, an EfficientNet-based AI model, and a MobileNet-based AI model.
[0157] The feature attention model 770 can generate one or more transformed first focus feature matrices 761 and 762 based on the following items: first focus feature matrices 751 and 752 for time points other than the last time point among multiple time points, and a UI diagram for at least one primitive action 710 performed from a time point other than the last time point among the multiple time points to the last time point.
[0158] According to an embodiment of the present disclosure, through the feature propagation operation S760, the feature attention model 770 may generate transformed first focus feature matrices 761 and 762, wherein the focus features of the first focus feature matrices 751 and 752 for time points other than the last time point among a plurality of time points are propagated to other nodes. In this case, the focus features may be propagated based on the UI graph for at least one primitive action 710 being executed. Therefore, the focus features mapped to the nodes corresponding to the focused UI elements on the application screen 721 at the first time point and the application screen 722 at the second time point may be propagated to the nodes corresponding to the focused UI elements on the application screen 723 at the third time point.
[0159] According to an embodiment of the present disclosure, a UI diagram for executing at least one primitive action 710 may be composed of Figure 6 One of the adjacency matrices 632 for at least one primitive action generated by the edge labeler 432 of . In this case, the focus feature can be propagated to other nodes through a matrix multiplication operation.
[0160] For example, the feature attention model 770 may generate a transformed first focus feature matrix 761 at the first time point where node features are propagated by multiplying the focus feature matrix 751 at the first time point by the adjacency matrix 713 of the primitive action "move left" 711 performed between the first time point and the second time point and the adjacency matrix 714 of the primitive action "move down" 712 performed between the second time point and the third time point. The feature attention model 770 may generate a transformed first focus feature matrix 762 at the second time point by multiplying the focus feature matrix 752 at the second time point by the adjacency matrix 714 of the primitive action "move down" 712 performed between the second time point and the third time point.
[0161] The feature attention model 770 may output a second focus feature matrix 771 in which the focus features have been emphasized based on the transformed first focus feature matrices 761 and 762 and the focus feature matrix 753 at the third time point.
[0162] According to an embodiment of the present disclosure, through the feature attention operation S764, the feature attention model 770 may emphasize the focus feature of the node mapped to the focused UI element on the application screen 723 at the third time point by comparing the focus features mapped to the plurality of nodes included in the transformed first focus feature matrices 761 and 762 with the focus features mapped to the plurality of nodes included in the focus feature matrix 753 at the third time point. Like this, through the temporal focus feature attention, the feature attention model 770 may generate a second focus feature matrix 771 in which the value of the focus feature mapped to the node corresponding to the unfocused UI element among the plurality of UI elements included in the application screen 723 at the third time point is reduced, and the value of the focus feature mapped to the node corresponding to the focused UI element among the plurality of UI elements included in the application screen 723 at the third time point is increased.
[0163] According to an embodiment of the present disclosure, the feature attention model 770 may be a model trained to perform the following operations: by receiving the first focus feature matrices 751 and 752 for time points other than the last time point among a plurality of time points, and a UI diagram for at least one primitive action 710 performed from a time point other than the last time point among the plurality of time points to the last time point, generating one or more transformed first focus feature matrices 761 and 762, and by combining the one or more transformed first focus feature matrices 761 and 762 with the first focus feature matrix 753 of the last time point, outputting a second focus feature matrix 771. For example, the feature attention model 770 may include an AI model based on an attention mechanism.
[0164] The feature comparison model 780 may identify the focus position 731 based on the focus feature matrix 751 and the second focus feature matrix 771 at the third time point.
[0165] According to an embodiment of the present disclosure, the focus feature matrix 751 or the second focus feature matrix 771 at the third time point may be input into the feature comparison model 780 , or the focus feature matrix 751 and the second focus feature matrix 771 at the third time point may be aggregated and input into the feature comparison model 780 .
[0166] According to an embodiment of the present disclosure, the feature comparison model 780 may compare the focus features respectively mapped to the plurality of nodes with each other to emphasize the focus feature mapped to the node corresponding to the focused UI element on the application screen 723 at the third time point. Like this, through the focus feature attention in space, the feature comparison model 780 may obtain the emphasized focus feature 732-1, wherein the focus feature mapped to the node corresponding to the focused UI element among the plurality of UI elements included in the application screen 723 at the third time point has been emphasized in the emphasized focus feature 732-1.
[0167] According to an embodiment of the present disclosure, the feature comparison model 780 may identify the probability 732-2 that the focus is located on each of the plurality of nodes based on the emphasized focus feature 732-1. Therefore, the focus position estimator 440 may identify that the focus of the application screen 723 at the third time point is located on the UI element corresponding to the node with the highest probability based on the probability 732-2 that the focus is located on each of the plurality of nodes identified by the feature comparison model 780.
[0168] According to an embodiment, the feature comparison model 780 may be a model trained to output a probability that the focus is located on each of the plurality of nodes by receiving the first focus feature matrix and the second focus feature matrix. Examples of the feature comparison model 780 may include an AI model based on graph data, such as a graph neural network (GNN) model, a graph convolutional network (GCN) model, and a graph attention network (GAN) model. In this case, Figure 6 The adjacency matrix 632 for at least one primitive action generated by the edge tagger 432 may be input to the feature comparison model 780 as the adjacency matrix required for the neural network operation.
[0169] According to an embodiment of the present disclosure, only application screen 723 at the third time point may exist among application screens 720 at multiple time points, and application screen 721 and application screen 722 before the third time point may not exist among application screens 720 at multiple time points. In this case, the graph-based focus position recognition model 730 may recognize the focus position 731 by spatial focus feature attention using the feature comparison model 780, without recognizing the focus position 731 by performing temporal focus feature attention using the feature attention model 770.
[0170] Like this, the electronic device 2000 according to an embodiment of the present disclosure may more accurately recognize the position of the focus by performing temporal focus feature attention and spatial focus feature attention on focus features obtained from respective application screens for a plurality of time points.
[0171] Reference Figure 7b , the focus position estimator 440 may identify the focus position 741 by using the vision-based focus position recognition model 740. The vision-based focus position recognition model 740 may output a focus location probability for each of a plurality of regions included in the application screen 723 at a third time point by receiving the application screens 720 for a plurality of time points and at least one primitive action 710 performed.
[0172] According to an embodiment of the present disclosure, the application screens 720 and at least one primitive action 710 executed at multiple time points may be input into the vision-based focus position recognition model 740 together with the application screens and primitive actions in a mapping relationship. For example, the application screen 722 at the second time point and the primitive action "move left" 711 executed before the second time point may be input into the vision-based focus position recognition model 740 as a pair.
[0173] According to an embodiment of the present disclosure, the focus position 741 may be identified as one of the plurality of bounding boxes included in the application screen 742-1 at the third time point at which the bounding box is generated. In this case, the vision-based focus position recognition model 740 may generate bounding boxes corresponding to the plurality of UI elements included in the application screen 723 at the third time point, and may identify a focus location probability 742-2 for each of the plurality of generated bounding boxes.
[0174] According to an embodiment of the present disclosure, the focus position 741 may be identified as one of a plurality of regions included in the application screen 743-1 at the third time point divided according to a preset size. In this case, the vision-based focus position recognition model 740 may divide the application screen 723 at the third time point according to the preset size, and may recognize a focus location probability 743-2 for each of the plurality of regions obtained by the division.
[0175] Therefore, the focus position estimator 440 can identify that the focus of the application screen 723 at the third time point is located on the bounding box or divided area with the highest probability based on the focus location probability 742-2 and the focus location probability 743-2 identified by the vision-based focus position recognition model 740.
[0176] According to an embodiment of the present disclosure, the focus position estimator 440 may be a model trained to perform the following operations: output a focus location probability for each of a plurality of regions by receiving an application screen for a plurality of time points and at least one primitive action performed. Examples of the focus position estimator 440 may include, but are not limited to, an AI model based on a convolutional neural network (CNN) and an AI model based on a visual transformer.
[0177] As such, the electronic device 2000 according to an embodiment of the present disclosure may recognize the position of a focus by using only application screens for a plurality of time points and at least one primitive action performed without generating a UI diagram based on graphic data.
[0178] Reference Figure 7c , the focus position estimator 440 may identify the position of the focus by using the graph-based focus position recognition model 730 and the vision-based focus position recognition model 740. In this case, the position of the focus may be recognized as at least one of a node where the focus is located, a bounding box where the focus is located, or a divided area where the focus is located.
[0179] According to an embodiment of the present disclosure, the focus position estimator 440 may convert information output by the graph-based focus position recognition model 730 and the vision-based focus position recognition model 740 into information about other dimensions by using a plurality of position converters 791, 792, and 793. The focus position estimator 440 may combine the information transformed into other dimensions with the information generated by the graph-based focus position recognition model 730 or the vision-based focus position recognition model 740 through at least one of a plurality of related wise ensemble layers 794, 796, and 798. According to an embodiment of the present disclosure, the focus position estimator 440 may obtain an emphasized focus feature 795-1 based on the combined information, and generate information 795-2 about the probability that the focus is located on each of a plurality of nodes based on the obtained emphasized focus feature. According to an embodiment of the present disclosure, the focus position estimator 440 may generate information 797-2 about the probability that the focus is located on each of a plurality of bounding boxes included in the application screen 797-1 based on the combined information. According to an embodiment of the present disclosure, the focus position estimator 440 may generate information 799-2 about the probability that the focus is located on each of the multiple areas of the application screen 799-1 based on the combined information. According to an embodiment of the present disclosure, the focus position estimator 440 may identify at least one of a focused node, a focused bounding box, or a focused divided area based on the generated multiple pieces of information 795-2, 797-2, and 799-2.
[0180] For example, the focus position estimator 440 may convert the information about the focus location probability for each of the plurality of nodes output by the graph-based position recognition model 730 into information about the focus location probability for each of the bounding boxes corresponding to the plurality of UI elements through the graph position converter 792. The focus position estimator 440 may combine the information output by the graph position converter 792 with the information about the focus location probability for each of the plurality of bounding boxes output by the vision-based focus position recognition model 740 through the position-wise integration layer 796, thereby identifying the focus location probability for each of the plurality of bounding boxes included in the application screen 797-1 at the third time point at which the bounding boxes are generated (i.e., the generated plurality of pieces of information 797-2). The focus position estimator 440 may identify that the focus of the application screen 723 at the third time point is located on the bounding box with the highest probability based on the information about the focus location probability (i.e., the generated plurality of pieces of information 797-2).
[0181] Like this, the electronic device 2000 according to an embodiment of the present disclosure may identify the position of the focus by combining a plurality of pieces of information for identifying the focus positions in different dimensions with each other, so that the focus position may be identified more accurately.
[0182] Figure 8a , Figure 8b , Figure 8c and Figure 8d is a diagram for explaining a method of analyzing an application screen performed by an electronic device according to various embodiments of the present disclosure.
[0183] Reference Figure 8a , the application may be executed in the first electronic device 1100 and displayed on the first electronic device 1100. The application executed in the first electronic device 1100 may be a third-party application that does not provide an API.
[0184] According to an embodiment of the present disclosure, the application may be more suitable for the application screen 1110 to be analyzed in the second electronic device 1200 than the application screen to be analyzed in the first electronic device 1100. For example, the first electronic device 1100 may be an electronic device with low hardware computing performance (e.g., a TV or a sign), and the second electronic device 1200 may be an electronic device with high hardware computing performance (e.g., a laptop or a smart phone). Therefore, in order to analyze the application screen 1110 more quickly and accurately, the application screen 1110 may be analyzed in the second electronic device 1200 instead of the first electronic device 1100 that executes the application.
[0185] According to an embodiment of the present disclosure, the first electronic device 1100 may copy the application screen 1110 and may transmit the copied application screen 1110 to the second electronic device 1200. The second electronic device 1200 may display the received application screen. The application screen displayed on the second electronic device 1200 or received from the first electronic device 1100 may be stored in the copied application screen history 1212.
[0186] According to an embodiment of the present disclosure, a primitive action may be input to the first electronic device 1100 in order to control an application executed by the first electronic device 1100 or navigate an application screen.
[0187] According to an embodiment of the present disclosure, a primitive action may be directly transmitted from a user input device to the first electronic device 1100. In this case, the first electronic device 1100 may transmit the received primitive action to the second electronic device 1200. A primitive action may be transmitted from a user input device to the second electronic device 1200. In this case, the second electronic device 1200 may transmit the received primitive action to the first electronic device 1100. The primitive action transmitted to the second electronic device 1200 may be stored in the primitive action history 1220.
[0188] According to an embodiment of the present disclosure, the second electronic device 1200 may include a UI map generator 1230 and a focus position estimator 1240. The second electronic device 1200 may analyze the application screen included in the copied application screen history 1212 by using the UI map generator 1230 and the focus position estimator 1240. For example, the second electronic device 1200 may obtain at least one of the plurality of application screens included in the copied application screen history 1212. The second electronic device 1200 may generate a UI map 1250 by using the UI map generator 1230. The electronic device 2000 may identify a focus position 1260 by using the focus position estimator 1240. The method of analyzing the copied application screen by using the UI map generator 1230 and the focus position estimator 1240 performed by the second electronic device 1200 is the same as that described above with reference to FIG. Figure 1 , Figure 2 , Figure 3a , Figure 3b , Figure 4a , Figure 4b , Figure 5a , Figure 5b , Figure 5c , Figure 6 , Figure 7a , Figure 7b and Figure 7c The described operation of analyzing the application screen by using the UI map generator 430 and the focus position estimator 440 performed by the electronic device 2000 is the same, and thus a repeated description thereof will be omitted.
[0189] Reference Figure 8b , the application may be executed in the second electronic device 1200 and displayed on the second electronic device 1200. The application executed in the second electronic device 1200 may be a third-party application that does not provide an API.
[0190] According to an embodiment of the present disclosure, because the computing performance of the hardware of the second electronic device 1200 executing the application is high, the second electronic device 1200 directly analyzing the application screen 1110 may be more accurate and faster than another electronic device capable of communicating with the second electronic device 1200. In this case, the application screen 1110 may be analyzed in the second electronic device 1200.
[0191] According to an embodiment of the present disclosure, the second electronic device 1200 may store the application screen 1210 provided from the currently executed application in the application screen history 1211 , or may store the application screen displayed on the second electronic device 1200 in the application screen history 1211 .
[0192] According to an embodiment of the present disclosure, the second electronic device 1200 may receive a primitive action from a user input device and may send the received primitive action to a currently executed application. The second electronic device 1200 may store the primitive action sent to the application in the primitive action history 1220.
[0193] According to an embodiment of the present disclosure, the second electronic device 1200 may analyze the application screen included in the application screen history 1211 by using the UI map generator 1230 and the focus position estimator 1240. For example, the second electronic device 1200 may obtain at least one of the plurality of application screens included in the application screen history 1211. The second electronic device 1200 may generate a UI map 1250 by using the UI map generator 1230. The electronic device 2000 may identify a focus position 1260 by using the focus position estimator 1240. The method of analyzing the application screen by using the UI map generator 1230 and the focus position estimator 1240 performed by the second electronic device 1200 is the same as that described above with reference to FIG. Figure 1 , Figure 2 , Figure 3a , Figure 3b , Figure 4a , Figure 4b , Figure 5a , Figure 5b , Figure 5c , Figure 6 , Figure 7a , Figure 7b and Figure 7c The described operation of analyzing the application screen by using the UI map generator 430 and the focus position estimator 440 performed by the electronic device 2000 is the same, and thus a repeated description thereof will be omitted.
[0194] Reference Figure 8c , the application may be executed in the first electronic device 1100 and displayed on the first electronic device 1100. The application executed in the first electronic device 1100 may be a third-party application that does not provide an API.
[0195] According to an embodiment of the present disclosure, the server 3000 includes hardware with high computing performance in order to process a large amount of computing. Therefore, in order to analyze the application screen more quickly and accurately, the application screen 1110 may be analyzed in the server 3000 instead of the first electronic device 1100.
[0196] According to an embodiment of the present disclosure, the server 3000 may receive an application screen 1110 and a primitive action 1120 from the first electronic device 1100. The server 3000 may store the received application screen 1110 in the application screen history 3010 and may store the received primitive action 1120 in the primitive action history 3020.
[0197] According to an embodiment of the present disclosure, the server 3000 may receive the application screen history 3010 and the primitive action history 3020 from the first electronic device 1100. In this case, the application screen history 3010 and the primitive action history 3020 may be generated in the first electronic device 1100 and may be transmitted to the server 3000.
[0198] According to an embodiment of the present disclosure, the server 3000 may analyze the application screen included in the application screen history 3010 by using the UI map generator 3030 and the focus position estimator 3040. For example, the server 3000 may obtain at least one of the plurality of application screens included in the application screen history 3010. The server 3000 may generate a UI map 3050 by using the UI map generator 3030. The server 3000 may identify a focus position 3060 by using the focus position estimator 3040. The method of analyzing the application screen by using the UI map generator 3030 and the focus position estimator 3040 performed by the second server 3000 is the same as that described above with reference to FIG. Figure 1 , Figure 2 , Figure 3a , Figure 3b , Figure 4a , Figure 4b , Figure 5a , Figure 5b , Figure 5c , Figure 6 , Figure 7a , Figure 7b and Figure 7c The described operation of analyzing the application screen by using the UI map generator 430 and the focus position estimator 440 performed by the electronic device 2000 is the same, and thus a repeated description thereof will be omitted.
[0199] Reference Figure 8d , the application may be executed in the second electronic device 1200 and displayed on the second electronic device 1200. The application executed in the second electronic device 1200 may be a third-party application that does not provide an API.
[0200] According to an embodiment of the present disclosure, since the second electronic device 1200 executing the application and the third electronic device 1300 capable of communicating with the second electronic device 1200 both have low hardware specifications, the second electronic device 1200 and the third electronic device 1300 can analyze the application screen 1210 in parallel so as to analyze the application screen 1210 more accurately and quickly.
[0201] According to an embodiment of the present disclosure, the second electronic device 1200 may transmit at least one application screen stored in the application screen history 1211 to the third electronic device 1300. The second electronic device 1200 may transmit at least one primitive action stored in the primitive action history 1220 to the third electronic device 1300.
[0202] According to an embodiment of the present disclosure, the second electronic device 1200 may generate the first UI map 1251 by using the UI map generator 1230. The third electronic device 1300 may generate the second UI map 1251 by using the UI map generator 1330.
[0203] According to an embodiment of the present disclosure, the first UI diagram 1251 or the second UI diagram 1252 may be provided to another electronic device that does not generate a UI diagram. For example, when the second electronic device 1200 generates the first UI diagram 1251 and the third electronic device 1300 does not generate the second UI diagram 1351, the first UI diagram 1251 generated by the second electronic device 1200 may be sent to the third electronic device 1300.
[0204] According to an embodiment of the present disclosure, the first UI diagram 1251 and the second UI diagram 1252 may be generated based on some application screens that need to be actually analyzed among the plurality of application screens. For example, a total of 100 application screens included in the application screen history 1211 need to be analyzed to generate a UI diagram, and the second electronic device 1200 may generate the first UI diagram 1251 based on 50 application screens among the 100 application screens, and the third electronic device 1300 may generate the second UI diagram 1252 based on the remaining 50 application screens.
[0205] According to an embodiment of the present disclosure, at least one of the second electronic device 1200 or the third electronic device 1300 may include a UI diagram integration model (not shown) for combining the first UI diagram 1251 with the second UI diagram 1252. Therefore, when the first UI diagram 1251 and the second UI diagram 1252 are UI diagrams generated based on some application screens that need to be actually analyzed among a plurality of application screens, at least one of the second electronic device 1200 or the third electronic device 1300 may generate a merged UI diagram corresponding to the combination of the first UI diagram 1251 and the second UI diagram 1252 through the UI diagram integration model (not shown). The merged UI diagram may be provided to another electronic device that does not generate the merged UI diagram.
[0206] According to an embodiment of the present disclosure, the second electronic device 1200 may identify the first focus position 1261 by using the focus position estimator 1240. The third electronic device 1300 may identify the second focus position 1361 by using the focus position estimator 1340.
[0207] According to an embodiment of the present disclosure, when the focus position estimator 1240 of the second electronic device 1200 or the focus position estimator 1340 of the third electronic device 1300 identifies the focus position based on a UI map, the focus position estimator 1240 of the second electronic device 1200 or the focus position estimator 1340 of the third electronic device 1300 may identify the focus position based on a UI map provided by another electronic device.
[0208] According to an embodiment of the present disclosure, the focus position estimator 1240 of the second electronic device 1200 and the focus position estimator 1340 of the third electronic device 1300 may generate information for identifying a focus in different dimensions, and identify the position of the focus based on the information. For example, the focus position estimator 1240 of the second electronic device 1200 may generate information about a focus location probability for each of a plurality of nodes corresponding to a plurality of UI elements included in the application screen by using a graph-based focus position recognition model. The focus position estimator 1340 of the third electronic device 1300 may generate information about a focus location probability for each of a plurality of regions included in the application screen 723 by using a vision-based focus position recognition model.
[0209] According to an embodiment of the present disclosure, at least one of the second electronic device 1200 or the third electronic device 1300 may include a focus position integration model (not shown) for combining a plurality of pieces of information for identifying a focus position. When the focus position estimator 1240 of the second electronic device 1200 and the focus position estimator 1340 of the third electronic device 1300 generate information for identifying a focus in different dimensions, at least one of the second electronic device 1200 or the third electronic device 1300 may combine a plurality of pieces of information for identifying a focus position in different dimensions with each other through the focus position integration model (not shown), thereby generating new information for identifying a focus position. At least one of the second electronic device 1200 or the third electronic device 1300 may identify the position of the focus based on the generated new information.
[0210] Fig. 9 is a block diagram of an electronic device 2000 according to an embodiment of the present disclosure.
[0211] Reference Fig. 9 , the electronic device 2000 may include a communication interface 2100 , a display 2200 , a memory 2300 , and a processor 2400 .
[0212] The communication interface 2100 may perform data communication with other electronic devices under the control of the processor 2400 .
[0213] The communication interface 2100 may include a communication circuit. The communication interface 2100 may perform data communication with a server or other electronic devices by using at least one of a data communication method including, for example, wired LAN, wireless LAN, Wi-Fi, Bluetooth, Zigbee, Wi-Fi Direct (WFD), infrared communication (IrDA), Bluetooth Low Energy (BLE), near field communication (NFC), wireless broadband Internet (Wibro), world interoperability for microwave access (WiMAX), shared wireless access protocol (SWAP), wireless Gigabit Alliance (WiGig), and RF communication.
[0214] According to an embodiment of the present disclosure, the communication interface 2100 may send data for analyzing an application screen to an external electronic device or receive data for analyzing an application screen from an external electronic device. For example, when an application screen executed by the electronic device 2000 is analyzed by an external electronic device, the communication interface 2100 may send the application screen and primitive actions to the external electronic device. On the other hand, when an application screen executed by an external electronic device is analyzed by the electronic device 2000, the communication interface 2100 may receive the application screen and primitive actions from the external electronic device. The communication interface 2100 may send an AI model for analyzing an application screen and training data for training the AI model to an external electronic device, or receive an AI model for analyzing an application screen and training data for training the AI model from an external electronic device.
[0215] The display 2200 may output an image signal to the screen of the electronic device 2000 under the control of the processor 2400. The display 2200 may display an application screen, and when at least one primitive action is performed, the application screen displayed on the display 2200 may be converted.
[0216] Instructions, data structures, and program codes readable by the processor 2400 may be stored in the memory 2300. According to the disclosed embodiments, operations performed by the processor 2400 may be implemented by executing instructions or codes of a program stored in the memory 2300.
[0217] Memory 2300 may include flash memory, hard disk memory, multimedia card micro memory, and card-type memory (e.g., secure digital (SD) or extreme digital (XD) memory), and may include non-volatile memory (including at least one of read-only memory (ROM), electrically erasable programmable ROM (EEPROM), programmable ROM (PROM), magnetic memory, magnetic disk, or optical disk) and volatile memory (such as random access memory (RAM) or static random access memory (SRAM)).
[0218] The memory 2300 according to an embodiment of the present disclosure may store one or more instructions and / or programs required for analyzing an application screen. For example, the memory 2300 may store a UI diagram generation module 2310 and a focus position estimation module 2320, and each module may include one or more AI models for executing the functions of the module. For example, the UI diagram generation module 2310 may include a link removal model, a link generation model, an edge labeler, etc. The focus position estimation module 2320 may include a graph-based focus position recognition model, a vision-based focus position recognition model, etc. The memory 2300 may store the application screen history and primitive action history required for the electronic device 2000 to analyze the application screen.
[0219] The processor 2400 may control the overall operation of the electronic device 2000. For example, the processor 2400 may control the overall operation of the electronic device 200 for analyzing an application screen by executing one or more instructions of a program stored in the memory 2300. One or more processors 2400 may be included.
[0220] At least one processor 2400 may include, but is not limited to, a central processing unit, a microprocessor, a graphics processor, an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), an application processor, a neural processing unit, or at least one of an AI-specific processor designed with a hardware structure specifically for processing AI models.
[0221] According to an embodiment of the present disclosure, at least one processor 2400 may generate multiple links for multiple UI elements included in an application screen. At least one processor 2400 may generate a UI diagram for each of at least one primitive action based on multiple links, wherein at least one primitive action is a user input for navigating the application screen. At least one processor 2400 may identify the position of the focus of the UI element that the user will interact with among multiple UI elements. The UI diagram may include the path through which the position of the focus moves between multiple UI elements through at least one primitive action.
[0222] According to an embodiment of the present disclosure, at least one processor 2400 may identify multiple UI elements based on an application screen. At least one processor 2400 may generate multiple nodes corresponding to the multiple UI elements. At least one processor 2400 may generate multiple links based on node features of the multiple nodes. The node features may include at least one of the features of the size, position, content, image, name, and level of the multiple UI elements.
[0223] According to an embodiment of the present disclosure, at least one processor 2400 may generate multiple links by using a link removal model. The link generation model may be a model trained to perform the following operations: generating multiple links by receiving node features and fully connected edges for multiple nodes and removing at least one link included in the fully connected edges. The fully connected edges may include links between multiple UI elements and themselves and all links between different UI elements.
[0224] According to an embodiment of the present disclosure, at least one processor 2400 may generate multiple links by using a link generation model. The link generation model may be a model trained to perform the following operations: by receiving node features, performing hierarchical clustering for multiple nodes, and in each operation of the hierarchical clustering, generating multiple links by connecting nodes clustered in the same layer to each other.
[0225] According to an embodiment of the present disclosure, at least one processor 2400 may map at least one primitive action to each of a plurality of links. At least one processor 2400 may generate a UI diagram based on what primitive action has been mapped to each of the plurality of links.
[0226] According to an embodiment of the present disclosure, at least one processor 2400 may generate an adjacency matrix by using an edge labeler. The edge labeler may be a model trained to receive edges for a plurality of nodes including a plurality of links to output a UI graph.
[0227] According to an embodiment of the present disclosure, at least one processor 2400 may identify the position of the focus from the application screen at the last time point based on respective application screens at multiple time points and at least one primitive action performed before the last time point among the multiple time points, wherein the respective application screens at the multiple time points are distinguished based on the time points at which at least one primitive action has been performed.
[0228] According to an embodiment of the present disclosure, the at least one processor 2400 may recognize a focus position by using at least one of a graphics-based focus position recognition model or a vision-based focus position recognition model.
[0229] According to an embodiment of the present disclosure, a graph-based focus position recognition model may include: a feature extraction model for outputting a first focus feature matrix for multiple time points including focus features; a feature attention model for outputting a second focus feature matrix emphasizing the focus features; and a feature comparison model for outputting a probability that the focus will be located on each of the multiple nodes. The focus features may include features associated with the position of the focus obtained from multiple UI elements.
[0230] According to an embodiment of the present disclosure, the feature extraction model may be a model trained to perform the following operations: by receiving multiple application screens, extracting focus features from each of the multiple application screens, and by mapping the focus features to nodes corresponding to UI elements from which the focus features are obtained, outputting a first focus feature matrix for multiple time points.
[0231] According to an embodiment of the present disclosure, a feature attention model may be a model trained to perform the following operations: generating one or more transformed first focus feature matrices by receiving a first focus feature matrix for a time point other than a last time point among a plurality of time points and a UI diagram for at least one primitive action performed from at least one time point among the plurality of time points to the last time point, and outputting a second focus feature matrix by combining the one or more transformed first focus feature matrices with the first focus feature matrix for the last time point.
[0232] According to an embodiment of the present disclosure, the feature comparison model may be a model trained to perform the following operations: by receiving a first focus feature matrix and a second focus feature matrix at a last time point among multiple time points, outputting a probability that the focus is located on each of multiple nodes.
[0233] According to an embodiment of the present disclosure, a vision-based focus position recognition model may be a model trained to perform the following operations: by receiving application screens for multiple time points and performing at least one primitive action, outputting a focus positioning probability for each of multiple areas included in the application screen at the last time point.
[0234] According to an embodiment of the present disclosure, the at least one processor 2400 may receive an application screen from an external electronic device via the communication interface 2100. The at least one processor 2400 may transmit at least one of a UI map or a position of a focus to the external electronic device via the communication interface 2100.
[0235] According to an embodiment of the present disclosure, the application screen may be displayed on the display 2200 as an execution screen of a third party application that does not provide an API.
[0236] Fig.10 is a block diagram of a server 3000 according to an embodiment of the present disclosure.
[0237] Reference Fig.10 , according to an embodiment of the present disclosure, the operation of the electronic device 2000 may be performed by the server 3000 .
[0238] The server 3000 according to an embodiment of the present disclosure may include a communication interface 3100, a memory 3200, and a processor 3300. The communication interface 3100, the memory 3200, and the processor 3300 of the server 3000 are connected to the server 3000. Fig. 9 The communication interface 2100, the memory 2300 and the processor 2400 of the electronic device 2000 correspond respectively, and thus repeated descriptions thereof will be omitted.
[0239] The server 3000 according to an embodiment of the present disclosure may have higher computing performance than the electronic device 2000, so that it can perform computing with a larger computing amount than the electronic device 2000. The server 3000 may perform training of an AI model, which requires a relatively large amount of computing compared to inference.
[0240] The memory 3200 may include a UI map generating module 3210 and a focus position estimating module 3220 .
[0241] According to an embodiment of the present disclosure, a method of analyzing an application screen is provided.
[0242] According to an embodiment of the present disclosure, a method for analyzing an application screen may include: generating a plurality of links for a plurality of UI elements included in the application screen, generating a UI map for each of at least one primitive action based on the plurality of links, and identifying a position of a focus indicating a UI element with which a user will interact among the plurality of UI elements, wherein the at least one primitive action is a user input for navigating the application screen. The UI map may include a path through which the position of the focus moves between the plurality of UI elements through the at least one primitive action.
[0243] According to an embodiment of the present disclosure, the step of generating multiple links may include: identifying multiple UI elements based on the application screen, generating multiple nodes corresponding to the multiple UI elements, and generating multiple links based on node features of the multiple nodes. The node features may include at least one of features about the size, position, content, image, name, and hierarchy of the multiple UI elements.
[0244] According to an embodiment of the present disclosure, the step of generating multiple links based on node features may include: generating multiple links by using a link removal model. The link removal model may be a model trained to perform the following operations: generating multiple links by receiving node features and fully connected edges of multiple nodes, and removing at least one link included in the fully connected edges. The fully connected edges may include links between multiple UI elements and themselves and all links between different UI elements.
[0245] According to an embodiment of the present disclosure, the step of generating multiple links based on node features may include: generating multiple links by using a link generation model. The link generation model may be a model trained to perform the following operations: performing hierarchical clustering for multiple nodes by receiving node features, and in each operation of the hierarchical clustering, generating multiple links by connecting nodes clustered in the same layer to each other.
[0246] According to an embodiment of the present disclosure, the step of generating the UI diagram may include mapping at least one primitive action for each of the plurality of links, and generating the UI diagram based on what primitive action has been mapped to each of the plurality of links.
[0247] According to an embodiment of the present disclosure, the step of generating the UI graph may include: generating an adjacency matrix by using an edge labeler. The edge labeler may be a model trained to receive edges for a plurality of nodes including a plurality of links to output the UI graph.
[0248] According to an embodiment of the present disclosure, the step of identifying the position of the focus may include: based on respective application screens for multiple time points and at least one primitive action performed before the last time point among the multiple time points, identifying the position of the focus from the application screen at the last time point, wherein the respective application screens for the multiple time points are distinguished based on the time points at which at least one primitive action has been performed.
[0249] According to an embodiment of the present disclosure, recognizing the focus position from the application screen at the last time point may include recognizing the position of the focus by using at least one of a graphic-based focus position recognition model or a vision-based focus position recognition model.
[0250] According to an embodiment of the present disclosure, a graph-based focus position recognition model may include: a feature extraction model for outputting a first focus feature matrix for multiple time points including focus features; a feature attention model for outputting a second focus feature matrix emphasizing the focus features; and a feature comparison model for outputting a probability that the focus will be located on each of the multiple nodes. The focus features may include features associated with the position of the focus obtained from multiple UI elements.
[0251] According to an embodiment of the present disclosure, the feature extraction model may be a model trained to perform the following operations: extract focus features from each of multiple application screens by receiving multiple application screens, and output a first focus feature matrix for multiple time points by mapping the focus features to nodes corresponding to UI elements from which the focus features are obtained.
[0252] According to an embodiment of the present disclosure, a feature attention model may be a model trained to perform the following operations: generating one or more transformed first focus feature matrices by receiving a first focus feature matrix for a time point other than a last time point among a plurality of time points and a UI diagram for at least one primitive action performed from at least one time point among the plurality of time points to the last time point, and outputting a second focus feature matrix by combining the one or more transformed first focus feature matrices with the first focus feature matrix for the last time point.
[0253] According to an embodiment of the present disclosure, the feature comparison model may be a model trained to perform the following operations: by receiving a first focus feature matrix and a second focus feature matrix at a last time point among multiple time points, outputting a probability that the focus is located on each of multiple nodes.
[0254] According to an embodiment of the present disclosure, a vision-based focus position recognition model may be a model trained to perform the following operations: by receiving application screens for multiple time points and performing at least one primitive action, outputting a focus positioning probability for each of multiple areas included in the application screen at the last time point.
[0255] Embodiments of the present disclosure may also be embodied as storage media including computer executable instructions, such as program modules executed by a computer. Computer readable media may be any available media accessible by a computer, and include all volatile / non-volatile and removable / non-removable media. In addition, computer readable media may include all computer storage and communication media. Computer storage media include all volatile / non-volatile and removable / non-removable media for storing information (such as computer readable instructions, data structures, program modules or other data) implemented in some method or technology. Communication media may typically include computer readable instructions, data structures or other data in a modulated data signal, such as a program module.
[0256] In addition, the computer-readable storage medium may be provided in the form of a non-transitory storage medium. A "non-transitory storage medium" is a tangible device and simply means that it does not contain a signal (e.g., an electromagnetic wave). The term does not distinguish between a case where data is semi-permanently stored in a storage medium and a case where data is temporarily stored. For example, a non-transitory recording medium may include a buffer that temporarily stores data.
[0257] According to an embodiment of the present disclosure, a method according to various disclosed embodiments may be provided by being included in a computer program product. A computer program product as a commodity may be traded between a seller and a buyer. The computer program product may be distributed in the form of a device-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be distributed directly and online (e.g., downloaded or uploaded) through an application store or between two user devices (e.g., smart phones). In the case of online distribution, at least a portion of the computer program product (e.g., a downloadable application) may be at least temporarily stored in a device-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a relay server), or may be temporarily generated.
[0258] While the present disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents.
Claims
1. A method for analyzing an application screen (510), the method include: generating a plurality of links (S210) for a plurality of user interface (UI) elements (511-1, 511-2, 511-3) included in the application screen (510); Based on the plurality of links (S220), generating a UI diagram (450) for each of at least one primitive action (340), wherein the at least one primitive action (340) is a user input for navigating the application screen (510); and identifying a position (460-1, 460-2) indicating a focus of a UI element with which a user is to interact among the plurality of UI elements (511-1, 511-2, 511-3) (S230), The UI diagram includes a path along which the focus position (460-1, 460-2) moves between the multiple UI elements (511-1, 511-2, 511-3) through the at least one primitive action.
2. The method according to claim 1, in, The step of generating the plurality of links comprises: identifying the plurality of UI elements based on the application screen; generating a plurality of nodes corresponding to the plurality of UI elements; and generating the plurality of links based on node features of the plurality of nodes, and The node features include at least one of the features regarding the size, position, content, image, name or level of the multiple UI elements.
3. The method according to claim 2, in, The step of generating the plurality of links based on the node features comprises generating the plurality of links by using a link removal model, The link removal model is a model trained to perform the following operations: generating the plurality of links by receiving the node features and fully connected edges for the plurality of nodes, and removing at least one link included in the fully connected edge, and The fully connected edges include links of multiple UI elements connected to themselves and all links between different UI elements.
4. The method according to claim 2 or 3, in, The step of generating the plurality of links based on the node features comprises generating the plurality of links by using a link generation model, and The link generation model is a model trained to perform the following operations: performing hierarchical clustering on the plurality of nodes by receiving the node features, and In each operation of the hierarchical clustering, the plurality of links are generated by connecting nodes clustered in the same layer to each other.
5. The method according to any one of claims 1 to 4, in, The steps of generating the UI diagram include: mapping the at least one primitive action for each link of the plurality of links; and The UI diagram is generated based on what primitive actions have been mapped to each of the plurality of links.
6. The method according to any one of claims 2 to 4, in, The step of generating the UI graph includes generating the UI graph by using an edge labeler, and The edge labeler is a model trained to receive edges for a plurality of nodes including the plurality of links to output the UI graph.
7. The method according to any one of claims 1 to 6, in, The step of identifying the position of the focus includes: based on respective application screens for multiple time points and at least one primitive action performed before the last time point among the multiple time points, identifying the position of the focus from the application screen at the last time point, wherein the respective application screens for the multiple time points are distinguished based on the time points at which the at least one primitive action has been performed.
8. The method according to claim 7, in, The step of recognizing the position of the focus from the application screen at the last time point includes recognizing the position of the focus by using at least one of a graphics-based focus position recognition model or a vision-based focus position recognition model.
9. The method according to claim 8, in, The graph-based focus position recognition model includes: a feature extraction model configured to output a first focus feature matrix for the plurality of time points including focus features, a feature attention model configured to output a second focus feature matrix emphasizing the focus feature, and a feature comparison model configured to output a probability that the focus will be located at each of a plurality of nodes, and The focus feature includes features obtained from the multiple UI elements and associated with the position of the focus.
10. The method according to claim 9, in, The feature extraction model is a model trained to do the following: extracting the focus feature from each of the application screens for the multiple time points by receiving the application screen; as well as A first focus feature matrix for the plurality of time points is output by mapping the focus feature to a node corresponding to a UI element from which the focus feature is obtained.
11. The method according to claim 9 or 10, in, The feature attention model is a model trained to do the following: Generate at least one transformed first focus feature matrix by receiving a first focus feature matrix for a time point other than the last time point among the multiple time points and a UI diagram for at least one primitive action performed from a time point other than the last time point among the multiple time points to the last time point; as well as By comparing the at least one transformed first focus feature matrix with the first focus feature matrix at the last time point, a second focus feature matrix is output.
12. The method according to any one of claims 9 to 11, in, The feature comparison model is a model trained to perform the following operation: by receiving the first focus feature matrix and the second focus feature matrix at the last time point, outputting the probability that the focus is located on each of the multiple nodes.
13. The method according to any one of claims 8 to 12, in, The vision-based focus position recognition model is a model trained to perform the following operations: by receiving the application screens for the multiple time points and at least one primitive action performed before the last time point, outputting the probability that the focus is located on each of the multiple areas included in the application screen at the last time point.
14. An electronic device (2000) for analyzing an application screen (510), the electronic device (2000) include: A memory (2300) storing one or more instructions; as well as at least one processor (2400) configured to execute at least one instruction stored in the memory (2300), Wherein, the at least one processor (2400) is configured to: generating a plurality of links for a plurality of user interface (UI) elements (511-1, 511-2, 511-3) included in the application screen (510); generating a UI diagram (450) for each of at least one primitive action (340) based on the plurality of links, wherein the at least one primitive action (340) is a user input for navigating the application screen (510); and identifying a position (460-1, 460-2) of focus indicating a UI element among the plurality of UI elements (511-1, 511-2, 511-3) with which a user is to interact, and The UI diagram (450) includes a path along which the focus position (460-1, 460-2) moves between the plurality of UI elements (511-1, 511-2, 511-3) through the at least one primitive action (340).
15. A non-transitory computer-readable recording medium having a computer program recorded thereon, in, The computer program, when executed by a computer, performs a method of analyzing an application screen, the method comprising: generating a plurality of links (S210) for a plurality of user interface (UI) elements (511-1, 511-2, 511-3) included in the application screen (510); Based on the plurality of links (S220), generating a UI diagram (450) for each of at least one primitive action (340), wherein the at least one primitive action (340) is a user input for navigating the application screen (510); and identifying a position (460-1, 460-2) indicating a focus of a UI element with which a user is to interact among the plurality of UI elements (511-1, 511-2, 511-3) (S230), The UI diagram includes a path along which the focus position (460-1, 460-2) moves between the multiple UI elements (511-1, 511-2, 511-3) through the at least one primitive action.
