Method and system for automatic identification and quantification of human-machine interface path redundancies based on operation logs
By standardizing operation logs and performing cross-sequence mapping, path redundancy in the human-computer interaction interface is identified and quantified, solving the problem of inconsistent identification in existing technologies and achieving unified processing and stable backtracking for different terminals and modalities.
Patent Information
- Application Number
- CN202611314896.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to effectively identify and quantify redundant path behaviors in human-computer interaction interfaces, and different identification rules lead to inconsistent results, making it difficult to reliably trace back to the original logs.
By standardizing the operation logs, we can reconstruct the sequence of interaction events, interface state transitions, and functional objects, establish cross-sequence position mapping, identify multiple types of redundant path events, perform unified processing at overlapping positions, and output quantitative results.
It achieves unified encoding of operation logs for different terminals and input modes, automatically identifies and quantifies multiple types of path redundancy, avoids misjudgment of reasonable paths, ensures that the identification results can be stably traced back to the original logs, and provides fine-grained redundancy analysis support.
Smart Images

Figure CN123138073A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of human-computer interaction data processing, user behavior analysis, and interface quality detection technology. Specifically, it relates to a method and system for automatically identifying and quantifying path redundancy based on operation logs, which reconstructs the paths of interactive events, interface state transitions, and function object calls generated during the user's completion of a target task. This method and system is referred to as the automatic identification and quantification method and system for human-computer interaction interface path redundancy based on operation logs.
[0002] This invention is applicable to graphical human-computer interaction interfaces with the ability to identify interface status, interactive elements, and operation log recording capabilities, including but not limited to mobile terminal interfaces, desktop software interfaces, vehicle-mounted human-computer interfaces, industrial control interfaces, smart screen interfaces, and virtual reality or augmented reality interactive interfaces. Background Technology
[0003] Graphical human-computer interfaces are widely used in mobile terminals, desktop software, vehicle systems, industrial control systems, smart screens, and virtual reality and augmented reality systems.
[0004] To complete tasks such as querying, selecting, setting, confirming, controlling, or handling, users need to trigger interactive elements through different methods such as clicking, touching, pressing buttons, knobs, gestures, voice, eye contact, or controllers, and cause the interface state to change in a certain order.
[0005] During task execution, due to unreasonable interface information architecture, interaction entry, feedback method, state organization, or function mapping, users may generate additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events, thereby increasing interaction steps, state transitions, and task execution costs.
[0006] Existing interface evaluation methods typically employ outcome-based metrics such as questionnaires, expert reviews, task completion time, success rate, or simple click counts and page visit counts. However, these methods struggle to directly determine the specific types of redundant behaviors, their start and end points, and their correspondence with the original interaction events from a large volume of operation logs.
[0007] Simply comparing the actual path with the single shortest path is insufficient to distinguish different types of path redundancy and may misjudge reasonable alternative paths that meet task constraints as redundant.
[0008] Furthermore, the same interactive event or interface state transition may simultaneously satisfy multiple redundant identification rules. If different rules clean, renumber, and calculate the original sequence separately, it may result in the same position being processed repeatedly, the effective interaction baselines used for different indicators being inconsistent, and the identification results being difficult to stably trace back to the same original log record.
[0009] Therefore, a method is needed that can uniformly encode operation logs generated by different terminals and different input modalities, reconstruct interface state paths, form stable position mapping relationships, automatically identify multiple types of path redundancy events based on effective reference paths, and perform unified position processing and quantization calculations when multiple identification results overlap. Summary of the Invention
[0010] The technical problem to be solved by the present invention is to provide a method and system for automatic identification and quantification of path redundancy in human-computer interaction interface based on operation logs, which addresses the shortcomings of the prior art. The method and system avoid misjudgment of reasonable paths by comparing multiple benchmark paths, ensure consistency of indicator baselines by cross-sequence mapping and unified processing of overlapping positions, realize traceability of redundant behavior by associating sequence position with log number, and output the position and associated object, supporting interface optimization positioning.
[0011] To achieve the above-mentioned technical objectives, the technical solution adopted by the present invention is as follows:
[0012] An automatic identification and quantification method for path redundancy in human-computer interaction interfaces based on operation logs is proposed. This method first standardizes the original operation logs, reconstructing the actual interaction event sequence, interface state transition sequence, interface state access sequence, and function object sequence, and establishing a cross-sequence position mapping between each sequence position and the original log record. Based on this, multiple types of path redundancy events are identified according to the effective baseline path, interaction feedback, interface state round trips, interface state revisits, and function object calls. For cases where different identification rules point to the same interaction event position or interface state position, each path redundancy event type is retained, and this position is processed only once when generating the effective sequence. The path redundancy quantification result is then calculated, and its corresponding original log record is output. This method uses the process of a user completing a target task as a task sample, and specifically includes the following steps:
[0013] Obtain the raw operation logs generated by the user during the execution of the target task through the graphical human-computer interaction interface, and determine the task sample based on the user identifier, task identifier, or session identifier;
[0014] The original operation logs in the task samples are processed for event standardization. The operation records generated by different input modalities are converted into standard interactive events with time sequence, interface status identifier, interactive object or functional object identifier, interactive event type and feedback status. The correspondence between standard interactive events and original log records is established.
[0015] Reconstruct the actual interaction event sequence, interface state transition sequence, interface state access sequence, and functional object sequence based on the standard interaction events, and establish cross-sequence position mappings between different sequence positions and between each sequence position and the original log record;
[0016] Construct a directed interaction path graph with interaction event attributes based on the interface state access sequence and its corresponding standard interaction events.
[0017] Based on the directed interaction path graph, the actual interaction path of the current task sample is determined according to the time sequence of interface state nodes, state transition edges and operations within nodes, and the actual interaction path is associated with the original log record through the cross-sequence position mapping.
[0018] Obtain a set of valid baseline paths corresponding to the target task. The valid baseline paths are task completion paths that meet the target task completion conditions and preset necessary states or necessary operation constraints. Then, determine a comparison baseline path corresponding to the current actual interaction path from the set of valid baseline paths.
[0019] Based on the differences between the actual interaction path and the benchmark path, the feedback results of interaction events, the interface state round-trip structure, the revisiting of the interface state, and the repeated calling of functional objects, the system automatically identifies additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events, and generates path redundancy location records containing event type, corresponding sequence position, and original log record identifier; the additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events are the six types of path redundancy events;
[0020] Cross-sequence position mapping is used to uniformly process the sequence positions pointed to by different path redundancy event identification rules; when the same sequence position corresponds to two or more path redundancy event types, the information of each path redundancy event type is retained, and the sequence position is processed only once when generating a valid interaction sequence.
[0021] Based on the valid interaction event sequence, valid interface state transition sequence, and valid interface state access sequence generated after unified location processing, as well as the identification results of six types of path redundancy events, six indicators are calculated. The six indicators include the extra operation ratio, invalid interaction rate, instant rollback rate, interface revisit rate, function retry rate, and path deviation. The six indicators and the interface state, interaction object or function object, and original log record corresponding to the path redundancy fragments are output.
[0022] As a further improvement of the present invention, the interactive events include clicks, touches, buttons, knobs, gestures, voice triggers, gaze confirmations, or controller inputs; the interactive object is an interactive element that receives the interactive event and corresponds to a specific function or state transition; the functional object is a group of interactive objects that have the same function identifier or point to the same task target state after being triggered; the interface state is determined according to at least one of page identifier, window identifier, mode identifier, pop-up state, operation mode, and interactive element state.
[0023] The actual interaction event sequence records the deduplicated interaction events performed sequentially when the user completes the target task; the interface state transition sequence is represented by a node chain that includes the task start state and the state reached after each transition; the interface state access sequence retains the repeated occurrence of the same interface state at different time positions; the function object sequence records the order in which the function objects are triggered.
[0024] Logs repeatedly reported by the same interaction event are merged and the original log number before merging is retained; for logs whose interface state cannot be determined, the original log number is retained and the corresponding position is used as the sequence analysis boundary. The identification of instant rollback events and interface revisit events does not cross the sequence analysis boundary.
[0025] As a further improvement to the present invention, the directed interaction path graph includes , where the set of nodes The nodes in the table correspond to the identifiable interface states, and the edge set is also relevant. The directed edges in the diagram correspond to the interface state transitions triggered by interactive events; for interactive events that do not produce interface state changes but belong to the target task execution process, they are saved as the internal operation record of the current state node; the state transition edge is associated with at least one of the following: interactive event type, interactive object or function object identifier, event timestamp, operation feedback status, and original log number;
[0026] The effective baseline path is obtained through pre-annotation, interface state relationship graph search, system task flow rule generation, or by filtering from historical task paths that have been confirmed to have correctly completed the target task; when there are multiple reasonable completion methods, multiple effective baseline paths are saved at the same time.
[0027] Calculate the normalized path deviation between the actual interface state path and each valid reference path, and take the one with the smallest value as the comparison reference path; if the values are the same, determine the comparison reference path according to at least one of the following: unnormalized path distance, necessary state matching degree and preset path number.
[0028] When the actual interaction path is confirmed by the task completion and baseline path determination rules to meet the task completion conditions, necessary states and necessary operation constraints and there are no unnecessary operations that can be deleted, it is determined as a reasonable alternative path, and its difference position relative to other baseline paths is not included in the path redundancy position cleanup.
[0029] As a further improvement to the present invention, the six types of path redundancy events are identified in the following manner:
[0030] When the total step size of the actual interaction path is greater than the total step size of the benchmark path, the step size difference between the two is used as an additional operation quantity, and the candidate positions of the additional operation are determined by aligning the actual interaction event sequence with the benchmark interaction event sequence, and the additional operation event is generated.
[0031] The system sequentially checks whether the interactive events in the task sample generate valid system feedback or valid task state advancement that match the interactive event. When an interactive event does not cause a change in the interface state, the interactive object state, or the task state within the corresponding response window, does not generate a system acceptance flag, and does not generate feedback results related to the current task, an invalid interactive event is generated. For inputs, knob adjustments, drags, voice triggers, eye confirmations, or controller operations that do not require interface state changes as necessary feedback, valid feedback conditions are preset according to the corresponding interactive event type.
[0032] When the interface state transition sequence obtained from the interface state access sequence appears When structuring, the two corresponding interface state transitions are identified as instant rollback events;
[0033] For each access to the same interface state in the interface state access sequence, adjacent access pairs are formed in the order of access. When the difference between the access positions of any adjacent access pair is greater than 2, the adjacent access pair is identified as an interface revisit event and included in the interface revisit rate calculation. When the same interface state is accessed again in a later time, only the new adjacent access pairs formed by the current access and the previous access are judged, and the already judged adjacent access pairs are not counted again.
[0034] The functional object is determined based on the functional identifier, target state, or system functional code of the interactive object. When the same functional object is called a second or subsequent time during the same task phase, the second and subsequent calls are first recorded as functional retry candidate events. Then, based on a preset set of reasonable repeated functional objects, situations involving increases or decreases in quantity, continuous parameter adjustments, pagination or scrolling, text editing, continuous object selection, and other situations requiring repeated calls of the same functional object according to the aforementioned reasonable repeated call rules are excluded. The corresponding calls are marked as reasonable repeated calls and excluded from the functional retry candidate events. The remaining candidate events after exclusion are identified as functional retry events. Whether the initial call was successful, whether the expected task state was reached, and whether the feedback was clear—diagnostic attribute records serving as reasons for functional retry—are not necessary conditions for identifying functional retry events.
[0035] Calculate the minimum edit distance between the actual interface state transition sequence and the interface state transition sequence of the comparison baseline path, generate path deviation events based on insertion, deletion or replacement operations and record the path deviation position.
[0036] As a further improvement to the present invention, the additional operation ratio is calculated in the following manner:
[0037] Set task sample The actual sequence of interactive events is The baseline interaction event sequence corresponding to the baseline path is compared as follows: , This represents the total step length of the actual interaction path. The total step length of the baseline interaction path; the completed task samples included in the calculation of this item satisfy... ,when When this happens, the corresponding task samples will be marked as pending inspection and will not be included in the population average calculation;
[0038] Additional operations are required:
[0039] ;
[0040] Task Sample The relative amount of additional operations is:
[0041] ;
[0042] The normalized extra operations ratio is:
[0043] ;
[0044] For including The sample set of computable task samples, the population extra operation ratio is:
[0045] .
[0046] As a further improvement to the present invention, the invalid interaction rate is calculated in the following manner:
[0047] set up For task samples The number of invalid interaction events identified in the process. To determine the number of unique valid interaction events retained in the valid interaction event sequence after a comprehensive cleanup of redundant interaction event locations according to the aforementioned unified location processing method, the task sample... The invalid interaction rate is:
[0048] ;
[0049] For including The sample set of computable task samples has a population invalid interaction rate of:
[0050] ;
[0051] The denominator of the invalid interaction rate is the sum of the number of invalid interaction events and the number of valid interaction events after unified cleanup. The invalid interaction rate is used to represent the relative degree of invalid interaction events with respect to the baseline of valid interaction events, and does not represent the proportion of invalid interaction events to the total number of original interaction events.
[0052] As a further improvement to the present invention, the instant rollback rate is calculated in the following manner:
[0053] Set task sample The actual interface state transition sequence is as follows , All of the actual interface state transition sequences The union of the interface state transition locations involved in the round-trip structure. The number of unique interface state transition locations is defined in the given set. The number of remaining valid interface state transitions after a complete cleanup according to the unified location processing method is the task sample. The instant rollback rate is:
[0054] ;
[0055] For including The sample set of computable task samples has a population immediate backoff rate of:
[0056] .
[0057] As a further improvement to the present invention, the interface revisit rate is calculated in the following manner:
[0058] For task samples Any interface state The interface state The access position in the interface state access sequence is represented as follows:
[0059] ,in , This indicates the access position of interface state p when it appears for the kth time in the interface state access sequence of task sample u.
[0060] when At that time, the interface state The number of revisit path steps is:
[0061] ;
[0062] Where 1(·) is an indicator function, which takes the value 1 if the condition inside the parentheses is true, and 0 otherwise;
[0063] when season When the same interface state is accessed two or more times, adjacent access pairs formed according to the order of access are judged one by one; if the difference between the positions of two adjacent accesses is greater than 2, it is directly included in the interface revisit rate. When the interface state is accessed again in a subsequent visit, only the new adjacent access pairs formed by the current visit and the previous visit are judged. The adjacent access pairs that have already been judged are not counted again, and the total number of visits condition is no longer set.
[0064] Task Sample The total number of revisits for all interface states is:
[0065] ;
[0066] set up To determine the remaining valid interface state access counts after a comprehensive cleanup using the unified location processing method, the task sample... The interface revisit rate is:
[0067] ;
[0068] For including The sample set of computable task samples, the group interface revisit rate is:
[0069] ;
[0070] in, The path steps are accumulated according to the revisit events of each interface state. For the same interface state, each adjacent access pair that satisfies a position difference greater than 2 contributes to the path steps, and subsequent accesses only add a new adjacent access pair. When the revisit intervals of different interface states overlap, each revisit event still contributes to the path steps. The access positions used to generate a valid interface state access sequence are taken as the union of position numbers and processed only once. Therefore, the interface revisit rate represents the cumulative intensity of each adjacent access pair that meets the position interval condition, and does not represent the proportion of non-repeated revisited positions to the total number of original accesses.
[0071] As a further improvement to the present invention, the functional retry rate is calculated in the following manner:
[0072] Set task sample The sequence of functional objects is as follows:
[0073] ;
[0074] in, The length of the sequence of functional objects; for functional objects in the same task phase The identity of a functional object is represented by a functional identifier or the task target state it points to after being triggered; when there is no stable functional identifier, the identity of the functional object is represented by a combination of interface state identifier, interaction object identifier, and task target state; its identity is reflected in the task sample. The number of triggers in the middle is:
[0075] ;
[0076] When the functional object If the number of triggers is greater than 1, the second and subsequent calls will be considered as retry candidates, with the following number of candidates:
[0077] ;
[0078] set up For task samples The set of functional objects included in the function retry statistics after excluding reasonable duplicate calls; the reasonable duplicate call refers to the operation that, according to the reasonable duplicate call rule, allows or requires two or more calls to the same functional object within the same task stage to complete the predetermined task state change; the reasonable duplicate call includes at least one of quantity increase / decrease, continuous parameter adjustment, pagination or scrolling browsing, text editing, continuous object selection, and other necessary duplicate calls predefined according to the reasonable duplicate call rule. A reasonable duplicate functional object set or reasonable duplicate call rule is established based on task type and task stage; candidate calls falling within the scope of the reasonable duplicate call are not included in the function retry count, while the second and subsequent calls remaining after excluding reasonable duplicate calls are included in the function retry count. Whether the first call is successful, whether the expected task state is achieved, and whether the feedback is clear are only used as cause diagnosis attributes and are not included as counting conditions. Task Sample The sum of the number of function retries for all functional objects included in the statistics is:
[0079] ;
[0080] set up To determine the number of unique valid interaction events retained in the valid interaction event sequence after a comprehensive cleanup according to the aforementioned unified location processing method, the task sample... The function retry rate is:
[0081] ;
[0082] For including The sample set of computable task samples, the population function retry rate is:
[0083] ;
[0084] The denominator of the function retry rate is the sum of the number of function retry events and the number of valid interaction events after unified cleanup. The function retry rate is used to represent the relative degree of function retry events with respect to the baseline of valid interaction events, and does not represent the proportion of function retry events to the total number of original interaction events.
[0085] As a further improvement to the present invention, the path deviation is calculated in the following manner:
[0086] Set task sample The actual interface state transition sequence is as follows The interface state transition sequence of the comparison baseline path is as follows Both the actual interface state transition sequence and the baseline interface state transition sequence are represented using a chain of state nodes, and it is agreed that... This represents the number of interface state transitions contained in the baseline state node chain; using the minimum edit distance where the insertion, deletion, and replacement costs are all 1, the task sample... The relative amount of path deviation is:
[0087] ;
[0088] in, The minimum number of insertion, deletion, and replacement operations required to convert the actual interface state node chain into a comparison baseline path state node chain;
[0089] The normalized path deviation is:
[0090] ;
[0091] For including The set of computable task samples, the group path deviation is:
[0092] .
[0093] As a further improvement of the present invention, when there are multiple backtracking results with the same cost in sequence alignment or edit distance calculation, a path matching result is selected according to a preset deterministic backtracking rule;
[0094] The backtracking direction is determined according to the priority order of matching, replacing, deleting, and inserting. When there are multiple candidate positions under the same priority, the result is determined according to the ascending order of the actual sequence position number and the original log number.
[0095] As a further improvement to the present invention, the output of the six indicators and the interface state, interactive object or functional object corresponding to the path redundancy fragment, and the original log record include:
[0096] If the same interactive event location, interface state transition location, or interface state access location simultaneously meets two or more path redundancy event identification rules, all path redundancy event types are retained in the path redundancy location record, but only once in the corresponding location set.
[0097] For closed paths formed by instant rollback events or interface revisit events, the interaction events that trigger the departure from the first closed endpoint, all interaction events occurring within the intermediate interface states of the closed path, and the interaction events that trigger the return to the closed endpoint are included in the redundant interaction event location set. When generating a valid interface state access sequence, the earlier endpoint with the smaller position number is retained, while the later endpoint with the larger position number, intermediate state positions identified as redundant, and associated state transitions are excluded. The number of relationships between adjacent nodes in the cleaned valid interface state node chain is used as the number of valid interface state transitions. The relationships between adjacent nodes are only used to calculate the number of valid state transitions after cleanup and are not used as new interface state transition outputs in the original log.
[0098] Output the results of six metrics for each task sample, the type of path redundancy event identified, the start and end positions of the path redundancy segment in the interaction event sequence or interface state sequence, the associated interface state, interaction object or function object, whether the position is included in the corresponding result calculation, the cross-sequence position mapping relationship, and one or more corresponding original log numbers.
[0099] When the denominator of a certain indicator is zero, that indicator for that task sample is marked as uncalculable, and the arithmetic mean is taken only for the calculable task samples when calculating the group indicators.
[0100] For task samples that have not completed their target tasks, only the types and locations of path redundancy events that can be determined are output. The calculation results of the six indicators for the task sample are not output, nor are they included in the calculation of the group indicators.
[0101] Output the indicator vector of the task sample:
[0102] ;
[0103] in, For task samples The normalized ratio of additional operations, For task samples invalid interaction rate For task samples The instant rollback rate For task samples Interface revisit rate, For task samples Functional retry rate, For task samples The normalized path deviation.
[0104] To achieve the above-mentioned technical objectives, another technical solution adopted by the present invention is as follows:
[0105] A system for automatic identification and quantification of path redundancy in a human-computer interaction interface based on operation logs includes:
[0106] The log acquisition and standardization module is used to acquire the raw operation logs corresponding to the target task and convert operation logs of different input modalities into standard interactive events.
[0107] The State and Sequence Reconstruction Module is used to reconstruct the actual interaction event sequence, interface state transition sequence, interface state access sequence, and function object sequence based on standard interaction events.
[0108] The cross-sequence mapping module is used to establish the correspondence between different sequence positions and between each sequence position and the original log record;
[0109] The interaction path graph construction module is used to construct a directed interaction path graph with interaction event attributes based on the interface state access sequence and standard interaction events.
[0110] The baseline path processing module is used to obtain a set of valid baseline paths that meet the constraints of the target task and to determine the comparison baseline path corresponding to the current task sample.
[0111] The path redundancy event identification module is used to automatically identify additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events, and generate corresponding path redundancy location records.
[0112] The path redundancy location processing module is used to merge overlapping locations pointed to by different path redundancy event identification rules according to cross-sequence location mapping. While retaining multiple path redundancy event type labels, it ensures that the same location is processed only once when generating a valid interaction sequence.
[0113] The metrics calculation module is used to calculate the extra operation ratio, invalid interaction rate, instant rollback rate, interface revisit rate, function retry rate, and path deviation.
[0114] The results output module is used to output six metrics, path redundancy event types, path redundancy segment locations, associated interface status, interactive objects or functional objects, and corresponding raw log records.
[0115] The problem this invention aims to solve is: how to uniformly process operation logs generated by different terminals and different input modalities, reconstruct the interface state path when the user completes the target task, automatically identify and quantify multiple types of redundant path events based on the effective benchmark path that meets the task constraints, and perform unified location processing when the same interaction event or interface state transition meets multiple recognition rules, so that the recognition results can be stably traced back to the original log.
[0116] The beneficial effects of this invention are as follows:
[0117] 1. Retain multiple reasonable completion paths to avoid misclassifying valid paths as redundant;
[0118] Existing methods only compare the actual path with a single shortest path, making it difficult to distinguish different types of path redundancy and potentially misjudging reasonable alternative paths that meet task constraints as redundant. This invention obtains a set of valid baseline paths corresponding to the target task, allowing multiple valid baseline paths that meet the completion conditions and necessary constraints for the same target task. For actual paths not pre-stored in the valid baseline path set but confirmed by task completion and baseline path determination rules to meet task completion conditions, necessary states, and necessary operational constraints, and lacking any unnecessary operations that can be deleted, they are marked as reasonable alternative paths. Their differences relative to other baseline paths are not included in the path redundancy cleanup. Therefore, this invention can identify redundant behavior in actual paths while retaining multiple reasonable completion paths, avoiding direct misjudgment due to the actual path differing from a single baseline path.
[0119] In summary, this invention can retain multiple reasonable completion paths that satisfy task constraints and locate six types of path redundancy events with different behaviors from the actual paths.
[0120] 2. Unify the handling of overlapping and redundant locations to ensure that the effective baselines of different indicators are consistent;
[0121] In existing methods, the same interaction event or interface state transition may simultaneously satisfy multiple redundancy identification rules. Different rules clean, renumber, and calculate the original sequence separately, which can easily lead to the same position being processed repeatedly, and inconsistent effective interaction baselines used for different indicators. This invention uses a cross-sequence position mapping table to uniformly represent six types of identification results—additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events—as path redundancy position records. When the same sequence position corresponds to two or more path redundancy event types, the labels for each path redundancy event type are retained, but they are only processed once when generating a valid interaction sequence. Therefore, overlapping positions pointed to by different identification rules are only stored once in the corresponding position set, and all indicators are statistically analyzed based on the same cleaned valid sequence, effectively avoiding the problem of inconsistent indicator baselines caused by the same behavior being repeatedly deducted.
[0122] 3. Establish cross-sequence location mapping and deterministic backtracking to ensure that the identification results can be stably traced back to the original logs;
[0123] Existing methods struggle to directly determine the specific type, start and end positions, and correspondence between redundant behaviors and original interaction events from large amounts of operation logs, making it difficult to reliably trace back to the same original log record. This invention establishes a cross-sequence position mapping between actual interaction event sequences, interface state transition sequences, interface state access sequences, and functional object sequences, and associates each sequence position with the original log number. Simultaneously, when multiple backtracking results with the same cost exist for sequence alignment or edit distance calculation, a unique and stable output is obtained according to a preset deterministic backtracking rule (e.g., based on the priority order of matching, replacement, deletion, and insertion). Thus, any identified path redundancy event and its fragments can be traced back to the associated interface state, interaction object, or functional object and the corresponding original log record through cross-sequence position mapping, making the identification results deterministic and reproducible. The preset deterministic backtracking rule can serve as a specific implementation method to obtain stable output when multiple equivalent position results occur.
[0124] 4. It has universal processing capabilities for operation logs from different terminals and different input modes;
[0125] This invention standardizes the encoding of heterogeneous interactive events, converting operation logs generated by different terminals and input modalities (including but not limited to clicks, touches, buttons, knobs, gestures, voice triggers, gaze confirmations, and controller inputs) into standard interactive events with a unified format. This is applicable to mobile terminal interfaces, desktop software interfaces, vehicle-mounted human-machine interfaces, industrial control interfaces, smart screen interfaces, and virtual reality or augmented reality interactive interfaces. A set of valid baseline paths is stored corresponding to terminal type, input modality, and interface version. When the interface structure, interaction method, or necessary steps change, the set of valid baseline paths for the corresponding version is updated to avoid misinterpreting version or input method differences as path redundancy.
[0126] 5. Provides quantitative indicators at two levels: single-task samples and multi-task samples;
[0127] This invention outputs six metrics for each task sample: additional operation ratio, invalid interaction rate, immediate rollback rate, interface revisit rate, function retry rate, and path deviation. It also provides the group average results for multiple task samples. The single-task results are used to locate specific redundant event types, start and end points, and related objects, providing fine-grained evidence for interface diagnostics. The average results for multiple task samples are used to compare the redundancy differences between different interface versions or different task flows, providing data support for iterative interface optimization.
[0128] In summary, this invention can uniformly encode operation logs generated by different terminals and different input modalities, reconstruct interface state paths, form stable position mapping relationships, automatically identify multiple types of path redundancy events based on effective reference paths, and perform unified position processing and quantization calculations when multiple identification results overlap, so that the identification results can be stably traced back to the original logs. Attached Figure Description
[0129] Figure 1 This is a schematic diagram of the overall process of automatic identification and quantification of path redundancy in human-computer interaction interface based on operation logs according to the present invention.
[0130] Figure 2 This is a schematic diagram illustrating the relationship between the original operation log, the actual interaction event sequence, the interface state transition sequence, the interface state access sequence, the functional object sequence, the interaction path diagram, and the cross-sequence position mapping.
[0131] Figure 3 This is a schematic diagram illustrating the path representation of six types of redundant events in the human-computer interaction interface.
[0132] Figure 4 A schematic diagram illustrating the unified processing of overlapping locations of redundant events in multiple paths and the generation of effective sequences. Detailed Implementation
[0133] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings:
[0134] Terminology and data definitions:
[0135] This invention uses the process of a user completing a specific target task in a graphical human-computer interaction interface as the basic unit of analysis. Starting from the task's initial state, the user goes through several interactive events and interface state transitions, and finally meets the conditions for submission, confirmation, control, or completion, thus forming a task sample; when the same user executes the same task multiple times, each execution forms a separate task sample.
[0136] In this invention, the term "interactive event" refers to a user's input behavior, such as clicking, touching, pressing buttons, rotating knobs, gestures, voice triggering, eye contact confirmation, controller input, or other actions that can trigger changes in the interface or task state. Clicking is a specific form of the interactive event.
[0137] In this invention, the term "interactive object" refers to an interactive element that can receive interactive events and correspond to specific functions or state transitions; the interactive object may be a button, menu item, list item, input control, virtual controller, physical mapping control item, or other interactive element with functional identifiers.
[0138] In this invention, a functional object is a group of interactive objects that have the same functional identifier or, when triggered, point to the same task target state. The same function can be provided by different interactive elements in the same interface state or different interface states.
[0139] In this invention, a task phase is a continuous processing interval obtained by dividing a complete task sample according to at least one of preset task flow nodes, necessary interface states, phase start identifiers, and phase end identifiers; when no phase division rules are set, the complete task sample is treated as a task phase.
[0140] In this invention, the preset rules corresponding to the target task include task flow rules for different purposes, task completion and baseline path determination rules, and reasonable repeated call rules. Task flow rules are used to generate valid baseline paths; task completion and baseline path determination rules are used to confirm whether the path meets the task objective, the necessary states, necessary operations, and operation sequence required to complete the task, and to determine whether it constitutes a reasonable alternative path; reasonable repeated call rules are used to distinguish between normal repeated calls required to complete the target task and unnecessary function retries. The reasonable repeated call rules are configured based on at least one of the target task type, task stage, function object type, and expected state changes, and are used to determine whether the second and subsequent calls to the same function object are necessary or permissible repeated operations for task execution. For situations involving quantity increases / decreases, continuous parameter adjustments, pagination or scrolling, text editing, continuous object selection, and other situations requiring repeated calls to the same function object according to the reasonable repeated call rules, the corresponding calls are marked as reasonable repeated calls and excluded from the function retry candidate events. The above rules are invoked according to the corresponding steps.
[0141] In this invention, the interface state is determined based on at least one of page identifier, window identifier, mode identifier, pop-up state, operation mode, and interactive element state, and can characterize the state of the user's interactive environment at a specific moment.
[0142] In this invention, the so-called interaction path refers to the process formed in chronological order of interaction events and their resulting interface state transitions during the execution of the target task; the so-called path redundancy refers to additional interactions or path differences in the actual interaction path that exceed the necessary range of the effective baseline path. Path redundancy does not necessarily lead to task failure, but it increases the number of interaction steps, state transitions, or task execution costs.
[0143] In this invention, a valid baseline path is a task completion path that satisfies the target task completion conditions, necessary state constraints, and necessary interaction steps, and does not contain any unnecessary operations that can be deleted. A target task can correspond to one or more valid baseline paths, and all valid baseline paths form a set of valid baseline paths; the actual path is compared with the most matching valid baseline path in the set (i.e., the comparison baseline path).
[0144] This invention identifies additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events, and calculates the additional operation ratio, invalid interaction rate, instant rollback rate, interface revisit rate, function retry rate, and path deviation degree for each. The aforementioned six types of events represent specific path redundancy identified from the operation log, and the six indicators quantify the occurrence degree of the corresponding events. Specifically, an interface revisit event occurs when the same interface state is accessed again after the user leaves, passing through other interface states not belonging to the instant rollback structure; the interface revisit rate quantifies the degree of repeated access to the same interface state. All results are calculated according to the formulas described later, where effective interactions, effective interface state transitions, and effective interface accesses are all statistical results after uniform location processing.
[0145] It is difficult to distinguish whether a user is lost, reading normally, waiting for a response, or temporarily leaving the device based solely on the dwell time. Therefore, states with long dwell times but no interactive events are not included in the six categories of identification results. Exploratory operations with unclear task objectives involve the user's subjective intentions and are also not included in the six categories of identification results.
[0146] The input of this invention is the raw operation log generated by the event acquisition interface, interface status recording interface, device control interface, or task experiment recording system of a graphical human-computer interaction interface. The log set of a task sample should be able to obtain fields used to determine the user, target task or session, and time sequence; each event log should include at least a timestamp and event type, and the interface status identifier, interaction object identifier, function object identifier, and operation result should be recorded according to the event type. It is permissible for some fields in a single log to be empty.
[0147] In one implementation, each log entry includes an anonymous user identifier, a task identifier, a session identifier, a timestamp, an interface state identifier before the event, an interaction event type, an interaction object identifier, a function object identifier, an interface state identifier after the event, a response code, and a prompt message. When some fields are missing, a definite sequence is constructed based on the existing fields, and the positions of the undetermined sequences are marked.
[0148] Interaction event types include clicks, touches, buttons, knobs, gestures, voice triggers, eye confirmation, controller input, selection, input, submission, return, scrolling, and dragging. A single user action's press and release logs are merged into one interaction event; duplicate logs generated due to data collection and retransmission are deduplicated based on time, interface state, and the interaction object.
[0149] For interface status identifiers with the same meaning but different names in different terminals or versions, they are unified according to interface function, interface structure or pre-configured alias table; when the same interactive object uses different names, resource numbers or structural paths in different logs, they are unified as the same interactive object identifier; interactive objects with the same functional identifier or pointing to the same task target state after being triggered are associated with the same functional object identifier.
[0150] This invention constructs four types of sequences from the original operation log. The first type is the actual interaction event sequence, recording all deduplicated interaction events performed by the user in chronological order. The second type is the interface state transition sequence, represented by a chain of nodes containing the task's initial state and the state reached after each transition, with two adjacent nodes corresponding to one interface state transition. The third type is the interface state access sequence, represented by the state access position within the same node chain and retaining non-continuous repetitions of the same interface state. The fourth type is the functional object sequence, recording functional objects triggered by the user in chronological order. The interface state transition sequence and the interface state access sequence originate from the same state node chain, but the former statistically analyzes state transitions and compares paths based on the relationship between adjacent nodes, while the latter statistically analyzes revisits based on the position of state nodes.
[0151] For task samples The actual sequence of interactive events is denoted as Each item in the sequence represents a standardized interaction event, and the total step length of the actual interaction path is denoted as . .
[0152] For the same objective task, the baseline interaction event sequence corresponding to the most matching valid baseline path is denoted as . The total step length of the baseline interaction path is denoted as .
[0153] Task Sample The actual interface state transition sequence is represented by a chain of state nodes as follows:
[0154] ;
[0155] in, This is the initial interface state for the task; subsequent items represent the interface states reached after each transition. This indicates the number of interface state transitions; therefore, this node chain contains... There are several state nodes, and two adjacent nodes together represent one interface state transition. To ensure that the sequence length and the step size of the state transition it represents are consistent, this specification stipulates that although... It is written using a node chain, but This indicates the number of state transitions contained in the node chain. This does not represent the number of state nodes. The interface state transition sequence that best matches the valid baseline path is denoted as... And using the same caliber, that is .
[0156] After renumbering the above interface state node chain according to the access position, the task sample The interface state access sequence is represented as follows:
[0157] ;
[0158] The interface state access sequence is renumbered starting from 1 within its own sequence. Task start state in the corresponding interface state transition sequence Each subsequent access location corresponds sequentially to the interface state reached after each transition; assuming the logs are complete, The interface state access sequence and the interface state transition sequence point to the same set of state nodes, and their positional correspondence is stored through a cross-sequence position mapping table. The interface state access sequence retains non-continuous repetitions of the same interface state, used to identify whether a user revisits that interface state after leaving it. Records that are continuously and repeatedly reported but have not resulted in any actual interface state change are not considered new accesses.
[0159] Task Sample The sequence of functional objects is represented as follows:
[0160] ;
[0161] in, For the first The identity of the functional object corresponding to each interactive event. This is the length of the functional object sequence for this task sample. The identity of a functional object is determined based on its function identifier or the task target state after triggering. If no stable function identifier is provided, a functional object mapping is established based on the interface state identifier, the interaction object identifier, and the task target state. The functional object sequence retains the repeated occurrences of the same functional object to count the number of times the same function is repeatedly triggered. In implementations using touchscreen clicks as interaction events, each functional object item specifically corresponds to a click event. For button, knob, gesture, voice, gaze, or controller input, the same mapping method is used to form corresponding functional object items.
[0162] This invention assigns sequence position numbers to deduplicated interactive events, interface state transitions, interface state accesses, and function object triggers, and establishes a cross-sequence position mapping table. The mapping record includes the interactive event position, the start and end positions of the interface state transition, the interface state access position, the function object position, and one or more corresponding original log numbers; for interactive events that do not generate an interface state transition, their state transition position is empty. When an interactive event is formed by merging multiple logs, the set of original log numbers before merging is saved.
[0163] Reference Figure 1 The present invention provides an automatic identification and quantification method for path redundancy in human-computer interaction interfaces. The method sequentially organizes and standardizes the task samples of the original operation log, reconstructs the actual interaction event sequence, interface state transition sequence, interface state access sequence, and functional object sequence, constructs an interaction path graph with attributes, generates a set of effective benchmark paths, identifies six types of path redundancy events, uniformly processes overlapping positions, generates effective sequences, calculates six index results, and outputs the correspondence between the identification results and the original log.
[0164] I. Operation Log Preprocessing:
[0165] The acquisition of raw operation logs and the organization of task samples aim to form computable single task samples and preserve a stable time order and original log numbers for subsequent sequence construction, including:
[0166] S101. Operation Log Acquisition and Standardized Preprocessing: Acquire raw operation logs within a preset time range, and divide the logs into one or more task samples based on anonymous user identifiers, target task identifiers, task start events, and task end events; standardize the encoding of event types, interface status identifiers, interaction object identifiers, and functional object identifiers generated by different terminals, different input modalities, and different versions.
[0167] S1011. Task Boundary Determination: When the log has recorded the task start and task end indicators, the logs between the two are classified into the same task sample; when the log does not clearly record the task boundary, the preset start interface is used as the task start condition, and the preset completion interface or success response is used as the task end condition.
[0168] S1012. Processing of incomplete task samples: Logs of incomplete tasks are marked separately as incomplete task samples. They are only used to output the identifiable behavioral locations and are not included in the results of the six indicators or their group average calculation.
[0169] S1013. Log Sorting: Within each task sample, logs are sorted in ascending order by timestamp. When timestamps are the same, they are sorted by log sequence number or collection order to ensure that the same input yields the same operation order.
[0170] S1014. Duplicate Log Merging and Exception Log Handling: Duplicate logs generated by the same interaction event are merged, retaining all original log numbers before merging. For logs where the interface state cannot be determined but the event time and interaction object can be determined, they are retained as interaction events on an unknown interface state, and the unknown state position is used as the boundary position in the interface state sequence; instant rollback events or interface revisit events are not identified if the boundary position is crossed. When the unknown state position affects the comparison between the actual interface state transition sequence and the effective baseline path, the path deviation is marked as incalculable. Logs that cannot be sorted or whose task to which they belong are not included in the indicator calculation.
[0171] II. Sequence and Path Reconstruction:
[0172] The sequence and path reconstruction aims to generate actual interaction event sequences, interface state transition sequences, interface state access sequences, and functional object sequences from the processed task samples for path redundancy identification, establish cross-sequence position mappings, and construct interaction path graphs, such as... Figure 2 As shown. Includes:
[0173] S201, Construction of Four Types of Sequences: Constructing actual interaction event sequences based on sorted and standardized logs. Interface state transition sequence Interface state access sequence and functional object sequence .
[0174] S2011, Construction of Actual Interaction Event Sequence: Clicks, touches, buttons, knobs, gestures, voice triggers, eye confirmations, controller inputs, and other interaction events generated during the task are written into the sequence in chronological order. Regardless of whether the corresponding event is subsequently identified as a valid interaction or a redundant interaction, it is first entered into the actual interaction event sequence; if an interaction event has multiple records in the log, it is only counted as one step.
[0175] S2012, Interface State Transition Sequence Construction: Compare the interface state identifiers in adjacent logs. When the current interface state is different from the previous interface state, record a transition from the previous state to the current state; multiple interactions that remain on the same interface state do not repeatedly add state transitions.
[0176] S2013, Interface State Access Sequence Construction: Record the interface state at the start of the task and the interface state reached after each transition in sequence, so that adjacent two items in the interface state access sequence correspond to one interface state transition.
[0177] S014, Functional Object Sequence Construction: Record the functional object identity corresponding to each interaction event in sequence. When there is no stable functional object number, use a combination of interface state identifier, interaction object identifier, the position of the interaction object in the interface structure, and task target state to represent the functional object identity; interaction objects with the same functional identifier or pointing to the same task target state after being triggered are mapped to the same functional object.
[0178] S2015, Cross-Sequence Position Mapping Establishment: Based on standard interactive events, interface state changes, and function object calls, establish the correspondence between the actual interactive event location, interface state transition location, interface state access location, function object location, and original log number. For example... Figure 2 As shown, the same interactive event corresponds to an event item in the actual interactive event sequence and a functional object item in the functional object sequence. When it causes a change in the interface state, it also corresponds to a state transition in the interface state transition sequence and a new access in the interface state access sequence. For interactive events that do not cause a change in the interface state, their interface state transition position and new interface state access position are empty, but the corresponding actual interactive event position, functional object position, and original log number are retained. The above correspondence is written into the cross-sequence position mapping table, and subsequent identification rules only generate position records without directly rewriting the four types of original sequences.
[0179] S2016, Interaction Path Graph Construction: Construct a directed interaction path graph with attributes based on the interface state access sequence and its corresponding standard interaction events. Among them, the node set Each node in the set corresponds to a recognizable interface state once, and the edge set... Each directed edge in the process corresponds to a UI state transition triggered by an interactive event; for interactive events that do not produce a UI state change but belong to the target task execution process, the interactive event is saved as the internal operation record of the current state node.
[0180] Each state transition edge is associated with at least one of the following: interaction event type, interaction object or function object identifier, event timestamp, operation feedback status, and original log number. For multiple interactions occurring at different times between the same interface state or between the same pair of interface states, the corresponding event sequence number and time attribute are retained separately, and different time positions are not merged. The actual interaction path of the current task sample is formed according to the time sequence of interface state nodes, state transition edges, and operations within nodes.
[0181] The node positions, state transition edges, and internal operations of the nodes in the interaction path graph are all mapped to the actual interaction event sequence and the original operation log through a cross-sequence position mapping table, so that any redundant fragment of the path in the path graph can be traced back to the corresponding original log record.
[0182] III. Determination of Effective Baseline Path:
[0183] The determination of the effective baseline path aims to obtain one or more comparison references that satisfy the constraints of the target task, and to determine the best-matching effective baseline path corresponding to the current actual path, including:
[0184] S202. Generation of a set of valid baseline paths: Determine one or more valid baseline paths corresponding to the target task to form a set of valid baseline paths. A valid baseline path refers to a task completion path that satisfies the target task completion conditions, necessary state constraints, and necessary interaction steps, and does not contain any unnecessary operations that can be deleted.
[0185] Valid baseline paths can be obtained through pre-annotation, interface state relationship graph search, system task flow rule generation, or filtering from historical task paths that have been confirmed to have correctly completed the target task. When multiple reasonable completion methods are allowed for the target task, multiple valid baseline paths are saved simultaneously, and paths are not directly judged as redundant simply because the actual interaction path differs from a single baseline path. Although the actual interaction path is not pre-stored in the set of valid baseline paths, if it is confirmed by the task completion and baseline path determination rules to meet the task completion conditions, necessary states, and necessary operation constraints, and there are no unnecessary operations that can be deleted, it is marked as a reasonable alternative path and can be saved as a new valid baseline path. The task completion and baseline path determination rules include the task objective, task start state, target state, necessary interface states required to complete the task, necessary interaction operations, and the order of operations, and are pre-configured according to the target task.
[0186] S2021, Pre-annotation method: During the system configuration phase, personnel familiar with the task flow annotate the paths that can correctly complete the target task. Based on the task completion and baseline path determination rules, each path is confirmed to meet the completion conditions, necessary states, necessary operations, and operation sequence. After deleting unnecessary operations that do not affect task completion, the annotated interaction event sequence and interface state transition sequence are stored as valid baseline paths.
[0187] S2022, Interface State Relationship Graph Search Method: An interface state relationship graph corresponding to the target task is established. This graph uses interface states as nodes and allows executable interface states as edges, storing the interaction events required to trigger each edge. For interaction events such as input, selection, or confirmation that do not change the interface state but are necessary for task completion, they are saved as internal node operations. Based on the target task's starting state, target state, necessary states, required operations, and the order of operations, a path satisfying the task requirements is searched within the interface state relationship graph. When multiple valid completion paths exist for the same task, each is saved as a valid baseline path.
[0188] S2023, Task Flow Rules or Historical Path Method: Generate valid baseline paths that meet the constraints according to the system's preset task flow rules, or select paths from historical task samples that have been confirmed to have completed the same target task correctly. After confirmation by manual or preset task completion and baseline path judgment rules and removal of unnecessary operations, add them to the set of valid baseline paths.
[0189] S2024, Multi-Baseline Path Matching: When the set of valid baseline paths contains multiple baseline paths, the path difference between the actual interface state path and each valid baseline path is calculated separately. The baseline path that best matches the current actual path is determined based on the normalized path deviation. The best-matching baseline path serves as a comparison reference for the current task sample to locate path deviation events and identify additional operation events. When two or more valid baseline paths obtain the same minimum path deviation, a comparison reference can be further determined based on at least one of the following: unnormalized path distance, necessary state matching degree, and preset path number. When the actual interaction path is confirmed as the aforementioned reasonable alternative path, its difference relative to other baseline paths is only recorded as a path difference and not included in the set of redundant interaction event locations, redundant interface state transition locations, or redundant interface state access locations.
[0190] S2025, Valid Baseline Path Version Adaptation: Save the set of valid baseline paths corresponding to terminal type, input modality, and interface version. When the interface structure, interaction method, or necessary steps to complete the task change, update the set of valid baseline paths for the corresponding version to avoid misinterpreting version or input method differences as path redundancy.
[0191] IV. Identification of Six Types of Path Redundancy Events:
[0192] Figure 3 This diagram illustrates the path behavior of six types of redundant events in human-computer interaction interfaces. Path redundancy identification aims to automatically determine these six types of events based on the difference between the actual interaction path and the most matching valid baseline path, as well as the operation feedback, interface state access, and function object calls recorded in the logs. Each type of identification is described according to the judgment object, judgment condition, output position, exclusion condition, and differences from other events. Each identification rule first generates a record of redundant path positions, without directly deleting sequence positions at this stage. Position conversion and merging are uniformly performed in S401 to S402, and the indicator formulas are uniformly calculated in S501 to S506. Specifically, these include:
[0193] S301, Additional Operation Event Recognition: The total step length of the actual interaction path... Total step size of the best-matching effective baseline path Comparison. When Greater than The difference between the two reflects the number of interaction events that the actual interaction path adds relative to the selected effective baseline path, and generates additional operation events.
[0194] S3011, Determining Additional Operation Candidate Positions: When At that time, the minimum edit distance of the unit cost of the baseline interaction event sequence selected by S2024 is used to align with the actual interaction event sequence. For each event, a comparison key is constructed using the standardized interaction event type, the interface state identifier, and the interaction object or function object identifier. When two interaction objects have the same function object identifier or point to the same task target state after being triggered, they are preferentially regarded as the same item according to the function object. The interaction object identifier is only compared when the functional equivalence relationship cannot be determined. If the comparison keys are the same, it is recorded as a match. Otherwise, it is processed as insertion, deletion, or replacement. The cost of the three editing operations is 1. When the alignment result contains items that do not correspond to the actual path and items that do not correspond to the baseline path, they are first paired in order as path content differences. Then, from the remaining uncorresponding positions in the actual path, items are selected in ascending order according to the event position number and the original log number. Each position is considered as a candidate position for additional operations. When multiple backtracking directions have the same cost, the result is determined according to the matching, replacement, deletion, and insertion order specified in S306. Candidate positions are used for location and position merging; the additional operation amount is still calculated according to... Calculations are performed; locations with discrepancies identified as reasonable alternative paths by S2024 are not included in the cleanup process.
[0195] when When, the additional operation amount is 0; when At that time, check the completeness of the task samples and the version of the valid baseline path, and mark this result as pending inspection before verification. Completed task samples that normally enter the calculation meet the requirements. .
[0196] S302, Invalid Interaction Event Identification: Sequentially check whether the interaction events in the task sample generate valid system feedback or valid task state advancement that matches the interaction event. The valid system feedback or valid task state advancement is used to indicate that the interaction event has been received by the system and has caused a change in the interface state, the state of the interactive object, or the task state.
[0197] S3021. Invalid Interaction Event Determination: When an interaction event does not cause a change in the interface state, the state of the interactive object, or the task state within the corresponding response window, does not generate a system acceptance flag, and does not generate feedback results related to the current task, the interaction event is identified as an invalid interaction event. The response window starts when the interaction event occurs and is used to determine whether a valid feedback is generated after the interaction event occurs; before the response window ends, the interaction event remains in a pending judgment state.
[0198] S3022. Feedback Conditions and Associations: For inputs, knob adjustments, dragging, voice triggers, eye confirmations, or controller operations that do not require interface state changes as necessary feedback, valid feedback conditions are pre-set based on the corresponding interaction event type. When the response log has an operation number, request number, function object identifier, or other unique association identifier, association is established primarily based on the aforementioned identifier; if a unique association identifier is missing, the corresponding feedback is determined based on the interface state, interaction object, time relationship, and original log order. A feedback record is associated with at most one interaction event.
[0199] In an implementation that uses click events for metric statistics, clicking on a non-responsive area without changing the interface state, the state of the interactive object, or the task state is considered an invalid interaction event. For interaction events where a network request is still in progress and the response window has not yet closed, the judgment is made after the response window closes; if no valid feedback is still received, it is counted as an invalid interaction event. Continuous interaction events such as scrolling, dragging, or text input are judged and responded to according to their respective event types and are not directly included in this click statistics implementation method.
[0200] S303, Instant Back Event Recognition: A continuous window of length 3 is used to check the interface state access sequence or interface state transition sequence. An instant back event occurs when three consecutive interface states have the same beginning and end states but different intermediate states. At that time, the path segment is identified as an immediate rollback event.
[0201] The instant rollback event corresponds to the continuous round trip of a user from entering interface state B to returning to interface state A, including... and Two interface state transitions.
[0202] S3031, Adjacent Window Deduplication: If the continuous path is This allows us to identify two adjacent instant rollback event structures. By taking the union of the interface state transition positions involved in all instant rollback event windows, we obtain... ;statistics At the same time, the same state transition position is counted only once to avoid double counting in adjacent windows.
[0203] When the interface status identifier is missing or the relationship between the three statuses cannot be confirmed, the window is not recognized and the corresponding position is marked as incomplete log; the interface revisit event recognition also does not cross the incomplete log position to form a closed path.
[0204] S304, Interface Revisit Event Recognition: Record the position of each interface state in the interface state access sequence. For each interface state... The access positions are sorted according to the order of access and formed into adjacent access pairs. When the same interface state is accessed again and the difference between the current access position and its previous access position is greater than 2, an interface revisit event is directly generated and the interface revisit rate is calculated. When the same interface state is accessed again later, only the new adjacent access pairs formed by the current access and its previous access are judged. The already formed access pairs are not re-evaluated, and no conditions are set for the total number of accesses such as a third or fourth access. For each interface state in the interface state access sequence... Record all locations where this state occurs, forming a set of access locations:
[0205] ;
[0206] in, , Indicates the interface status No. The position where it appears in the interface state access sequence.
[0207] S3041, Adjacent Access Pair Determination: To avoid... Type-based instant rollback repeat metering, for adjacent access locations and Pairwise judgment; when When the same interface state reappears, only newly formed adjacent access pairs are considered; adjacent access pairs with a difference of no more than 2 in access position are not counted as interface revisits.
[0208] For example, the interface state access sequence is When the second access to the interface is in state B, the difference between the current state and the previous access position is 3, directly generating an interface revisit event and initiating the interface revisit rate calculation; the sequence is as follows. If the difference between the two access locations is 2, it will be treated as an immediate rollback event and will not be counted as a revisit to the interface.
[0209] When the difference between two adjacent access positions is greater than 2, a revisit event record is directly generated and marked for entry into the revisit rate calculation, without using the total number of accesses to the same interface state as an additional condition. Therefore, Although interface state B was only accessed twice, the difference between its adjacent access positions is 3, so it is still included in the interface revisit rate; for In interface state B, the first and second visits, and the second and third visits, form an adjacent visit pair, and each visit pair that meets the position difference condition is calculated once.
[0210] S305, Functional Retry Event Recognition:
[0211] The functional object is determined based on the functional identifier, target state, or system functional code of the interaction object. Within the same target task phase, when the same functional object is called a second or subsequent time, the second and subsequent calls are identified as functional retry candidate events.
[0212] Based on the reasonable repeated call rules corresponding to the current target task and task stage, candidate events for function retry are filtered. Repeated calls that, according to the reasonable repeated call rules, involve increasing or decreasing quantity, continuous parameter adjustment, pagination or scrolling, text editing, continuous object selection, or other necessary or permissible repeated calls to complete the target task are excluded from the candidate events for function retry; the remaining candidate events after exclusion are identified as function retry events.
[0213] Whether the initial call was successful, whether the expected task status was achieved, and whether the feedback was clear are recorded as diagnostic attributes for the reason for function retry, but are not necessary conditions for identifying function retry events.
[0214] S306, Path Deviation Event Recognition: Transforming the Actual Interface State Transition Sequence As the sequence to be transformed, the interface state transformation sequence that best matches the valid baseline path will be selected. As the target sequence, the minimum edit distance between the two sequences is calculated using a dynamic programming table. The rows of the dynamic programming table correspond to the prefixes of the actual sequences, the columns correspond to the prefixes of the reference sequences, and the predecessor direction selected for each cell is stored.
[0215] S3061, Edit Cost and Deterministic Backtracking: The minimum edit distance represents the minimum number of insertion, deletion, and replacement operations required to convert the actual interface state transition sequence into the baseline interface state transition sequence. In this embodiment, the cost of insertion, deletion, and replacement is 1. When multiple backtracking results with the same cost exist in sequence alignment or edit distance calculation, a path matching result is selected according to a preset deterministic backtracking rule. In one implementation, the backtracking direction is determined according to the priority order of matching, replacement, deletion, and insertion; when multiple candidate positions exist under the same priority, the result is determined according to the ascending order of the actual sequence position number and the original log number. When backtracking the dynamic programming table, a unique edit script is generated according to the saved predecessor direction.
[0216] S3062. Path Deviation Position Determination: Following the direction of converting the actual sequence into a reference sequence, interface state nodes in the actual path that exceed the reference path are deleted. Reference state nodes missing from the actual path are inserted into the actual sequence. Interface states reached by the actual path that differ from the reference path are replaced. For deleted and replaced actual nodes, the corresponding actual state node and its associated state transformation position are recorded as the path deviation position. For inserted missing reference nodes, since the node has no corresponding actual log, when the insertion position is in the middle of the actual state node chain, the two actual state nodes before and after the insertion position are used as positioning anchors. When the insertion position is at the beginning or end of the node chain, the available side's actual state node is used as the positioning anchor, and the missing reference interface state identifier is saved in the behavior record. All the above positions or anchors are associated with the original log number through a cross-sequence position mapping table.
[0217] Additional operation events reflect the increase in the number of actual interaction events, while path deviation events reflect the difference between the actual interface state transition structure and the best-matching effective baseline path; actual paths with the same total step size of interaction events may still have different interface state transition structures.
[0218] V. Unified handling of redundant event locations across multiple paths:
[0219] like Figure 4 The diagram shows the unified processing of overlapping locations of redundant events in multiple paths and the generation of effective sequences.
[0220] Among them, the unified processing of overlapping positions and the generation of effective sequences aim to transform the six types of recognition results into a unified position system, avoiding repeated processing of the same interaction event or interface state position because it simultaneously meets multiple recognition rules, including:
[0221] S401, Path Redundancy Location Record Generation: All types of path redundancy events obtained from S301 to S306 are uniformly represented as path redundancy location records. Each record includes at least the task sample identifier, candidate record number, identification rule source, event type, sequence type, sequence start position, sequence end position, corresponding interaction event position, interface state transition position or interface state access position, whether it enters the indicator calculation, and one or more original log numbers; in the case of path deviation events where only the baseline node is missing, the missing baseline interface state identifier and positioning anchor point are also included. The determination of "whether to include in the metric calculation" is based on the statistical objects of each event: In additional operation events, the actual interaction event positions that are aligned and do not belong to a reasonable alternative path are included in the redundant interaction event position set; invalid interaction event positions and the second and subsequent call positions retained after excluding reasonable duplicate calls in function retry events are included in the redundant interaction event position set; the closed path state transition positions of instant rollback events and the revisit interval positions where the difference between adjacent access positions is greater than 2 in interface revisit events are included in the redundant interface state transition position or redundant interface state access position set, respectively, and the corresponding interaction event positions are transformed through cross-sequence position mapping; the deletion and replacement positions in path deviation events are included in the corresponding position set, only indicating that the insertion position where the actual path lacks a reference node is saved as the positioning anchor point and not included in the cleanup; the difference positions of reasonable alternative paths retain event records but are marked as not included in the metric calculation.
[0222] S4011, Cross-Sequence Position Conversion: According to the cross-sequence position mapping table, the redundant position records marked as entering the index calculation path are converted into redundant interactive event positions, redundant interface state transition positions, and redundant interface state access positions for statistical purposes. In the implementation using touchscreen clicks as interactive events, the redundant interactive event positions are specifically represented as redundant click positions. Invalid interactive events and function retry events directly provide interactive event positions; instant rollback events and interface revisit events provide state transition positions and intermediate state access positions in the closed path, and convert interactive events that trigger leaving the first closed endpoint, all interactive events occurring in the intermediate interface state of the closed path, and interactive events that trigger returning to the closed endpoint into redundant interactive event positions; additional operation events and path deviation events provide the actual interactive event positions or actual interface state positions obtained through sequence alignment. The position numbers of the original sequence are not changed during the conversion process.
[0223] S4012. Merging Overlapping Location Sets: First, the union of overlapping locations generated by the same rule is taken. Then, common locations pointed to by different rules are merged to form a set of non-repeating redundant interactive event locations, a set of redundant interface state transition locations, and a set of redundant interface state access locations. When the same location conforms to multiple recognition rules, all redundant event types and judgment criteria corresponding to that location are retained, but they are only saved once in the corresponding location set and processed only once when generating a valid sequence. The numerators of each indicator are still statistically calculated according to their respective recognition results.
[0224] Reference Figure 4 The locations of additional operation events are E3 and E4, invalid interaction events are E4, instant rollback events are E3, E4, and E5, and path deviation events are E4 and E5. After unifying these locations, the set of redundant interaction event locations is E3, E4, and E5. E4 retains the labels for the four event types: additional operation, invalid interaction, instant rollback, and path deviation, but excludes them only once when generating the valid interaction event sequence; the numerators of each event indicator are still counted separately according to their respective identification results.
[0225] S4013, Closed Path Endpoint Processing: [This section appears to be incomplete and requires further context.] The instant rollback event fragment retains the earlier interface state A as a closed endpoint, treats the later interface state A as a repeating endpoint, and excludes intermediate state B, repeating endpoints, and two related state transitions. For interface revisit event segments, the earlier endpoint A is retained using the same rules, while intermediate access positions identified as belonging to revisit loops, later duplicate endpoints, and their associated state transitions are excluded. When multiple segments intersect or are nested, they are processed in ascending order of start position, end position, and candidate record number, and then the sets of positions to be excluded are merged, thus ensuring that the same position is not processed repeatedly.
[0226] S402. Valid Sequence Generation: Redundant interaction event positions are removed from the actual interaction event subsequence used for statistics to obtain a valid interaction event sequence; redundant state access positions and associated state transitions are removed from the interface state node chain, and the remaining nodes are connected to obtain a valid interface state access sequence. The relationship between adjacent state nodes after cleanup constitutes a valid interface state transition sequence. This relationship is only used to count the number of valid state transitions after cleanup and is not output as a new state transition that actually occurred in the original log. When the missing baseline interface state in a path deviation event only has a positioning anchor point but no actual interaction event position, the identification record is retained, and the anchor point is not deleted.
[0227] In this embodiment, the number of deduplicated valid interaction events is obtained from the above sequences. Valid number of interface state transitions and number of accesses to valid interface status Among them, the number of valid interface state transitions is the number of relationships between adjacent nodes in the cleaned-up state node chain, and the number of valid interface state accesses is the number of remaining state nodes.
[0228] When a valid interface state access sequence contains at least one node, the number of valid interface state transitions equals the number of valid interface state accesses minus 1. The same logs, valid baseline path sets, and judgment configurations are processed according to a fixed baseline path selection, edit backtracking, and position merging order to obtain a determined set of path redundancy locations and a set of original log numbers. This implementation intentionally uses uniformly cleaned valid interactions, valid interface state transitions, and valid interface state accesses as a common valid baseline for the corresponding indicators, ensuring that the results of the six indicators reflect the same cleaned task path. Therefore, when a certain type of path redundancy event increases and changes the common valid baseline, the proportion of other events using that baseline may change accordingly; this change is within the expected result of the overall path quantification caliber. When comparing different task samples or interface versions, the same identification rules, baseline path sets, and position processing configurations are used.
[0229] VI. Calculation of Six Indicators:
[0230] Six metrics are used to convert the aforementioned path redundancy identification results and effective interaction counts into computational results that can be compared between single task samples or multiple task samples. The molecules for each type of path redundancy event are calculated separately according to their respective location records, and the effective sequence serving as a common baseline is generated based on the positional union. Specifically, these include:
[0231] S501, Calculation of Additional Operation Ratio: Assuming task sample The actual sequence of interactive events is The most matching valid baseline path corresponds to the baseline interaction event sequence as follows: The total step length of the actual interaction path is The total step size of the baseline interaction path is The completed task samples that are normally included in the calculation of this item's results meet the following requirements. ; The task samples are marked as pending inspection according to S301 and are not included in the population average.
[0232] The step size by which the actual interaction path increases compared to the best-matching valid baseline path is:
[0233] ;
[0234] Task Sample The relative amount of additional operations is:
[0235] ;
[0236] To constrain the numerical values to The interval, after normalization, has the following additional operation ratio:
[0237] ;
[0238] For including The sample set of computable task samples, the population extra operation ratio is:
[0239] ;
[0240] The higher the additional action ratio, the more interaction events a user actually performs relative to the best-matching valid baseline path in order to complete the same target task.
[0241] S502, Invalid Interaction Rate Calculation: Let... For task samples The number of invalid interaction events identified by S302 in China. This refers to the number of deduplicated valid interaction events retained in the valid interaction event sequence after a comprehensive cleanup of the aforementioned redundant interaction event location set. This number of valid interaction events is not obtained by separately cleaning up invalid interaction events, but rather is a baseline of valid interaction events shared by all identification rules. In the implementation using touchscreen clicks as interaction events, the valid interaction event specifically manifests as a valid click event.
[0242] Task Sample The invalid interaction rate is:
[0243] ;
[0244] For including The sample set of computable task samples has a population invalid interaction rate of:
[0245] ;
[0246] A higher invalid interaction rate means that, relative to the valid interaction events retained after unified cleanup, there are more interaction events that do not drive changes in the interface state or task state.
[0247] S503, Calculation of immediate rollback rate: Let... The actual interface state transition sequence All identified by S303 of China Economic Information Network The union of the state transition locations involved in the round-trip window. This represents the number of unique state transition locations within the set. State transition locations shared by adjacent or overlapping windows are counted only once.
[0248] set up To determine the number of relationships between adjacent nodes in the cleaned effective interface state node chain, i.e., the number of effective interface state transitions, the task sample... The instant rollback rate is:
[0249] ;
[0250] For including The sample set of computable task samples has a population immediate backoff rate of:
[0251] ;
[0252] A higher instant rollback rate indicates that there are more state transition locations involved in the instant rollback relative to the effective interface state transition.
[0253] S504, Interface Revisit Rate Calculation: For task samples Interface status The set of access locations is:
[0254] ;
[0255] when At that time, the interface state The number of revisit path steps is:
[0256] ;
[0257] in, , · This is an indicator function that takes the value 1 if the condition is true, and 0 otherwise. This represents the position difference between two visits to the same interface state within the state access sequence. season When the same interface state is accessed two or more times, each adjacent access pair is evaluated sequentially; if the difference between the positions of two adjacent accesses is greater than 2, it is directly counted in the revisit path steps. For example, interface state When it appears at positions 1 and 4, the position difference is 3, and the number of revisited path steps is 3. When it appears at position 7, only the new adjacent visit pair formed by positions 4 and 7 is judged, the number of revisited path steps increases by 3 and accumulates to 6, and the visit pair formed by positions 1 and 4 is not counted repeatedly.
[0258] Task Sample The total number of revisits for all interface states is:
[0259] ;
[0260] set up The task sample represents the number of valid interface state accesses remaining after a comprehensive cleanup using a unified location processing method. The interface revisit rate is:
[0261] ;
[0262] For including The sample set of computable task samples, the group interface revisit rate is:
[0263] ;
[0264] The revisit path steps for each interface state are accumulated separately. For the same interface state, each adjacent access pair with a positional interval greater than 2 is counted in the numerator, and subsequent accesses only add one access pair. When revisit intervals intersect, each revisit event is counted in the numerator, and the union of positions is taken when generating a valid interface state access sequence. The larger the value, the more times the same interface state is revisited or the longer the path.
[0265] S505, Functional Retry Rate Calculation: Task Sample The sequence of functional objects is as follows:
[0266] ;
[0267] For any functional object in the same task phase Its task sample The number of triggers in the middle is:
[0268] ;
[0269] When the functional object When the number of triggers is greater than 1, the number of function retry candidates formed by the second and subsequent calls is:
[0270] ;
[0271] Task Sample The sum of the number of function retries for all functional objects included in the statistics is:
[0272] ;
[0273] in, For task samples The set of functional objects included in the function retry statistics after excluding reasonable repeated calls. Functional objects that are necessary or allowed to be repeatedly called according to the reasonable repeated call rules are not included in the function retry statistics set; for the remaining functional objects, the second and subsequent calls are counted in the function retry count after excluding candidate events that meet the reasonable repeated call rules. Whether the first call was successful, whether the expected task state was achieved, and whether the feedback was clear are only used as cause diagnosis attributes and are not used as statistical premises.
[0274] Task Sample The function retry rate is:
[0275] ;
[0276] For including The sample set of computable task samples, the population function retry rate is:
[0277] ;
[0278] A higher function retry rate means that the user triggers the same function object more times relative to a valid interaction event.
[0279] S506, Path Deviation Calculation: Compare the actual interface state transition sequence using the minimum edit distance. Interface state transition sequence that best matches the valid baseline path The cost of insertion, deletion, and replacement is 1.
[0280] Task Sample The relative amount of path deviation is:
[0281] ;
[0282] in, To determine the minimum number of insertions, deletions, and replacements required to transform the actual interface state node chain into a state node chain that best matches the valid baseline path; based on the aforementioned length criteria for the interface state transition sequence, This indicates the number of interface state transitions contained in the baseline state node chain. This does not represent the number of state nodes. .
[0283] The normalized path deviation is:
[0284] ;
[0285] For including The set of computable task samples, the group path deviation is:
[0286] ;
[0287] The greater the path deviation, the more redundant interface state nodes, missing baseline states, or replaced states there are in the actual path, and the more significant the difference between the actual task flow and the most matching effective baseline path. The minimum edit distance value is determined by the dynamic programming table, and the specific offset position is determined by the unique backtracking order specified in S306.
[0288] VII. Results Output and System Implementation:
[0289] S507. Results Organization and Output: Organize and output the task samples. The six calculation results form an index vector:
[0290] ;
[0291] The output should include at least the task sample identifier, target task type, calculated values from the six metrics, identified path redundancy event types, the position of redundant segments in the corresponding sequence, associated interface states, interactive objects or functional objects, whether the position is included in the corresponding result calculation, cross-sequence position mapping relationships, and one or more corresponding original log numbers. If the actual path lacks a baseline interface state, the output should also include the missing baseline state identifier and its preceding and following anchor points.
[0292] When the denominator of the effective baseline path for the extra operation ratio or path deviation is zero, the result is marked as uncalculable. Similarly, when the sum of the numerator of a proportionality index and the corresponding effective interaction or effective state count is zero, the result is also marked as uncalculable. When there are unknown interface state boundaries that affect state sequence comparisons, the path deviation is marked as uncalculable.
[0293] Group indicators This indicates the number of computable task samples for this metric. Different metrics can have different numbers of computable samples; when calculating the result for a group, only the arithmetic mean of the computable task samples for that metric is taken. Here, a group refers to a sample set consisting of N computable user-task samples included in the statistical calculation of the same metric.
[0294] The identification results are output in the form of tables, data files, or interfaces. The result records are organized by task samples or redundant segments of a single path, and are associated with the interface state, interactive objects, functional objects, time, and feedback information at the time of redundancy through the original log number.
[0295] The following are numerical examples of the six formulas, with each example independently explaining the corresponding calculation method.
[0296] Regarding the additional operation ratio, assuming the best-matching valid baseline path contains 6 interaction events and the actual interaction path contains 9 interaction events, then... , The additional operations are 3, the relative additional operations are 0.5, and the normalized ratio of additional operations is... .
[0297] Regarding the invalid interaction rate, if one invalid interaction event is identified in the task sample, and five unique valid interaction events are retained after overall cleanup, then the invalid interaction rate is... .
[0298] Regarding the instant rollback rate, assume there is one rollback in the actual path. If the union of the interface state transition positions for a round trip contains two positions, and after overall cleanup, there are 4 valid interface state transitions remaining, then the instant rollback rate is... .
[0299] Regarding the interface revisit rate, let a certain interface state... If a location is visited twice, at positions 1 and 4, and the difference between these adjacent visits is 3 (greater than 2), then this pair of visits is directly counted as a revisit, with a revisit path count of 3 steps. If no other interface states generate revisits, and after overall cleanup, there are 5 valid interface state visits remaining, then the interface revisit rate is... .
[0300] Regarding the function retry rate, suppose a certain function object in the same task phase is triggered 3 times. First, the second and third calls are recorded as 2 function retry candidates. After judging by the reasonable duplication rules, this function object does not belong to the set of reasonable duplicate function objects, so the function retry count is 2. Other function objects are not triggered repeatedly. After overall cleanup, 5 deduplicated valid interaction events remain, and the function retry rate is... .
[0301] Regarding path deviation, assuming the state node chain of the best-matching valid baseline path contains 5 interface state positions, corresponding to 4 interface state transitions, and the actual state node chain inserts 1 more interface state than the baseline state node chain, with a minimum edit distance of 1, then normalized according to the number of state transitions, the relative path deviation is: The normalized path deviation is .
[0302] The following is an example of a log input to a result output. In this example, a touchscreen click is used as the specific form of the interaction event. The best-matching valid baseline path for a certain target task contains 3 interaction events, and the baseline interaction event sequence is as follows: The baseline interface state node chain is The task sample contains 6 deduplication click operation logs. to The actual sequence of interactive events is as follows The sequence of interactive objects is The sequence of functional objects is Each functional object is distinct; the actual interface state node chain and interface state access sequence are both... .in, Corresponding interactive object and functional objects And trigger , correspond and And it occurred within interface state B but did not generate any effective feedback. correspond and And trigger , correspond and And trigger , correspond and And trigger , correspond and And trigger .
[0303] In the cross-sequence location mapping, the actual interaction event locations 1 to 6, the function object locations 1 to 6, and the raw log are... to One-to-one correspondence in sequence; interface state transition position 1 corresponds to... and Position 2 corresponds to and Position 3 corresponds to and Position 4 corresponds to and Position 5 corresponds to and The interface status access position 1 corresponds to the task start state A, and positions 2 to 6 correspond to the task start state A, respectively. , , , and Arrival at B, X, B, C, and D. (Log) As an internal operation of a node in interface state B, it corresponds to the actual interaction event position 2 and the function object position 2, but does not correspond to a new interface state transition position or access position.
[0304] S301 obtained , and ,Will to As an additional operational event candidate location; S302 will The location was identified as an invalid interaction event; S303 will , corresponding The event is identified as an immediate rollback event; S304: Because the difference between the two access positions in interface state B is 2, an immediate rollback loop is formed, but the position interval condition for interface revisit is not met, so no event is generated to enter the interface revisit rate calculation; S305: Because the six functional objects are different, the number of functional retries is 0; S306: The minimum edit distance is 2, and... , The location of the path deviation event is recorded. S401 takes the union of various locations to obtain a set of redundant click locations. Keep after cleaning The effective interface state node chain is Therefore , , The results of the six indicators are as follows: additional operations ratio Invalid interaction rate Real-time rollback rate Interface revisit rate Functional retry rate The relative amount of path deviation is The normalized path deviation is The index vector is In the output record, Associate invalid interaction events and additional operation events. , Associate with instant rollback events, additional operation events, and path deviation events.
[0305] In offline batch processing, the system reads logs within a preset time range, divides them into task samples, and executes steps S101, S201 to S202, S301 to S306, S401 to S402, and S501 to S507 sequentially. For tasks containing... The step sizes for the log entries, actual interaction paths, and the most closely matched valid baseline path are respectively... and The number of interface state transitions for the actual path and the selected baseline path are respectively and The number of candidate position records is For the task sample, the processing volume of log sorting varies. Growth, sequence construction, and local path redundancy scanning follow Growth, alignment of interaction event sequences Growth, interface state sequence edit distance calculation Growth, position sorting and merging Growth. When multiple valid baseline paths exist, path comparison is performed on each candidate state sequence, and then interaction event sequence alignment is performed on the selected baseline path.
[0306] The task sample results table includes the task sample identifier, task type, interface version, sample start and end time, task completion status, six indicator results, and calculation status.
[0307] The path redundancy location table includes the task sample identifier, candidate record number, identification rule source, path redundancy event type, sequence type, start and end positions, involved interface states, interactive objects or functional objects, whether it enters result calculation, cross-sequence position mapping relationship, and original log number. When the actual path lacks a baseline interface state, the missing state and positioning anchor point are recorded separately.
[0308] In the incremental processing mode, after receiving the task sample completion event, the system performs sequence reconstruction, interaction path graph construction, path redundancy event identification, and index calculation; for interaction events that have not yet ended, it is determined whether they are invalid interaction events after the response window ends.
[0309] When the terminal type, input modality, or interface version changes but the task objective remains the same, the corresponding set of valid baseline paths and set of reasonable repetitive function objects are saved respectively, and the corresponding configuration is selected according to the terminal, modality, and version identifier in the log.
[0310] When comparing two interface versions, calculate the six group results for multiple task samples under the same target task; a decrease in a certain result indicates that the redundancy reflected by that indicator has decreased.
[0311] In one system embodiment, the human-computer interaction interface path redundancy automatic identification and quantification system includes a log acquisition and standardization module, a state and sequence reconstruction module, a cross-sequence mapping module, an interaction path graph construction module, a baseline path processing module, a path redundancy event identification module, a path redundancy location processing module, an index calculation module, and a result output module.
[0312] The log acquisition and standardization module acquires the original operation logs corresponding to the target task, divides the task samples, and completes the standardization of log sorting, duplicate record merging, interaction event types, interface status identifiers, interaction object identifiers, and function object identifiers, converting operation logs of different input modalities into standard interaction events.
[0313] The state and sequence reconstruction module constructs the actual interaction event sequence, interface state transition sequence, interface state access sequence, and function object sequence. The cross-sequence mapping module establishes the correspondence between different sequence positions and between each sequence position and the original log number.
[0314] The interaction path graph construction module constructs an attributed directed interaction path graph based on the interface state access sequence and standard interaction events. It determines the actual interaction path of the current task sample according to the chronological order of interface state nodes, state transition edges, and internal node operations. Then, it associates the actual interaction path, its state nodes, state transition edges, and internal node operations with the original operation log through cross-sequence position mapping. The baseline path processing module generates one or more valid baseline paths that meet the task completion conditions and necessary constraints based on pre-annotation, interface state relationship graph search, system task flow rules, or verified historical paths. Finally, it determines the comparison baseline path corresponding to the current task sample.
[0315] The path redundancy event identification module performs additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events identification, and generates location records with path redundancy event type, sequence position, original log number, and judgment criteria.
[0316] The path redundancy location processing module converts each location record into interactive event locations, interface state transition locations, and interface state access locations through cross-sequence location mapping. It takes the union of overlapping locations pointed to by the same rule and different rules, allowing multiple path redundancy event type labels to be retained for the same location, but processing them only once when generating a valid sequence. The indicator calculation module calculates the extra operation ratio, invalid interaction rate, immediate rollback rate, interface revisit rate, function retry rate, and path deviation according to the formulas in S501 to S506.
[0317] The results output module outputs the results of a single task sample, the average result of multiple task samples, the path redundancy event type, the path redundancy fragment, the associated interface status, the interactive object or functional object, and the corresponding original log number.
[0318] The above modules are divided according to their processing functions and are implemented by one or more computer programs.
[0319] In one embodiment of an electronic device, the electronic device includes a processor, a memory, and a data interface. The memory stores raw operation logs, a set of valid baseline paths, a set of reasonable repetitive functional objects, and a computer program; the processor executes the program to complete the method steps of the present invention; the data interface receives the logs and outputs the calculation results.
[0320] In one embodiment of the storage medium, the computer-readable storage medium stores a computer program that, when executed by a processor, performs log standardization, reconstruction of four types of sequences, construction of interactive path graphs, cross-sequence position mapping, generation of a set of effective baseline paths, identification of six types of path redundancy events, unified processing of overlapping positions, generation of effective sequences, calculation of six indicator results, and output of results.
[0321] This invention is applicable to graphical human-computer interaction interfaces with the ability to identify interface states, interactive elements, and operation log recording capabilities, including mobile terminal interfaces, desktop software interfaces, vehicle-mounted human-computer interfaces, industrial control interfaces, smart screen interfaces, and virtual reality or augmented reality interaction interfaces, without relying on specific business names, interface styles, or interactive object text.
[0322] In practical applications, the data reading method, response window, effective baseline path set, and reasonable duplicate function object set are adjusted according to log fields, terminal type, input modality, and target task, while the variable relationships, numerators, denominators, and normalization calculation methods of the six indicators remain unchanged.
[0323] The scope of protection of this invention includes, but is not limited to, the above embodiments. The scope of protection of this invention is defined by the claims. Any substitutions, modifications, or improvements to this technology that are easily conceived by those skilled in the art fall within the scope of protection of this invention.
Claims
1. A method for automatic identification and quantification of path redundancy in a human-computer interaction interface based on operation logs, characterized in that, Includes the following steps: Obtain the original operation logs generated by the user during the execution of the target task through the graphical human-computer interaction interface, and determine the task sample based on the user identifier, task identifier, or session identifier; The original operation logs in the task samples are processed for event standardization. The operation records generated by different input modalities are converted into standard interactive events with time sequence, interface status identifier, interactive object or functional object identifier, interactive event type and feedback status. The correspondence between standard interactive events and original log records is established. Reconstruct the actual interaction event sequence, interface state transition sequence, interface state access sequence, and functional object sequence based on the standard interaction events, and establish cross-sequence position mappings between different sequence positions and between each sequence position and the original log record; Construct a directed interaction path graph with interaction event attributes based on the interface state access sequence and its corresponding standard interaction events. Based on the directed interaction path graph, the actual interaction path of the current task sample is determined according to the time sequence of interface state nodes, state transition edges and operations within nodes, and the actual interaction path is associated with the original log record through the cross-sequence position mapping. Generate one or more valid baseline paths that satisfy the target task completion conditions, necessary state constraints and necessary interaction steps, forming a set of valid baseline paths; And determine the comparison benchmark path corresponding to the current actual interaction path from the set of valid benchmark paths; Based on the differences between the actual interaction path and the benchmark path, the feedback results of interaction events, the interface state round-trip structure, the revisiting of the interface state, and the repeated calling of functional objects, the system automatically identifies additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events, and generates path redundancy location records containing event type, corresponding sequence position, and original log record identifier; the additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events are the six types of path redundancy events; By using cross-sequence position mapping, the sequence positions pointed to by the redundancy event identification rules of different paths are uniformly processed; When the same sequence position corresponds to two or more path redundancy event types, the information of each path redundancy event type is retained, and the sequence position is processed only once when generating a valid interaction sequence. Based on the valid interaction event sequence, valid interface state transition sequence, and valid interface state access sequence generated after unified location processing, as well as the identification results of six types of path redundancy events, six indicators are calculated. The six indicators include the extra operation ratio, invalid interaction rate, instant rollback rate, interface revisit rate, function retry rate, and path deviation. The six indicators and the interface state, interaction object or function object, and original log record corresponding to the path redundancy fragments are output.
2. The method according to claim 1, characterized in that: The interactive events include clicks, touches, buttons, knobs, gestures, voice triggers, eye confirmations, or controller inputs; the interactive objects are interactive elements that receive interactive events and correspond to specific functions or state transitions; the functional objects are a group of interactive objects that have the same function identifier or point to the same task target state after being triggered; the interface state is determined based on at least one of page identifier, window identifier, mode identifier, pop-up state, operation mode, and interactive element state. The actual interaction event sequence records the deduplicated interaction events performed sequentially when the user completes the target task; the interface state transition sequence is represented by a node chain that includes the task start state and the state reached after each transition; the interface state access sequence retains the repeated occurrence of the same interface state at different time positions; the function object sequence records the order in which the function objects are triggered. Logs repeatedly reported by the same interaction event are merged and the original log number before merging is retained; for logs whose interface state cannot be determined, the original log number is retained and the corresponding position is used as the sequence analysis boundary. The identification of instant rollback events and interface revisit events does not cross the sequence analysis boundary.
3. The method according to claim 1, characterized in that: The directed interaction path graph includes , where the set of nodes The nodes in the table correspond to the identifiable interface states, and the edge set is also relevant. The directed edges in the diagram correspond to the interface state transitions triggered by interactive events; for interactive events that do not produce interface state changes but belong to the target task execution process, they are saved as the internal operation record of the current state node; the state transition edge is associated with at least one of the following: interactive event type, interactive object or function object identifier, event timestamp, operation feedback status, and original log number; The effective baseline path is obtained through pre-annotation, interface state relationship graph search, system task flow rule generation, or by filtering from historical task paths that have been confirmed to have correctly completed the target task; when there are multiple reasonable completion methods, multiple effective baseline paths are saved at the same time. Calculate the normalized path deviation between the actual interface state path and each valid reference path, and take the one with the smallest value as the comparison reference path; if the values are the same, determine the comparison reference path according to at least one of the following: unnormalized path distance, necessary state matching degree and preset path number. When the actual interaction path is confirmed by the task completion and baseline path determination rules to meet the task completion conditions, necessary states and necessary operation constraints and there are no unnecessary operations that can be deleted, it is determined as a reasonable alternative path, and its difference position relative to other baseline paths is not included in the path redundancy position cleanup.
4. The method according to claim 1, characterized in that, The six types of path redundancy events are identified as follows: When the total step size of the actual interaction path is greater than the total step size of the benchmark path, the step size difference between the two is used as an additional operation quantity, and the candidate positions of the additional operation are determined by aligning the actual interaction event sequence with the benchmark interaction event sequence, and the additional operation event is generated. The system sequentially checks whether the interactive events in the task sample generate valid system feedback or valid task state advancement that match the interactive event. When an interactive event does not cause a change in the interface state, the interactive object state, or the task state within the corresponding response window, does not generate a system acceptance flag, and does not generate feedback results related to the current task, an invalid interactive event is generated. For inputs, knob adjustments, drags, voice triggers, eye confirmations, or controller operations that do not require interface state changes as necessary feedback, valid feedback conditions are preset according to the corresponding interactive event type. When the interface state transition sequence obtained from the interface state access sequence appears When structuring, the two corresponding interface state transitions are identified as instant rollback events; For each access to the same interface state in the interface state access sequence, adjacent access pairs are formed in the order of access. When the difference between the access positions of any adjacent access pair is greater than 2, the adjacent access pair is identified as an interface revisit event and included in the interface revisit rate calculation. When the same interface state is accessed again in a later time, only the new adjacent access pairs formed by the current access and the previous access are judged, and the already judged adjacent access pairs are not counted again. The functional object is determined based on the functional identifier, target state, or system functional code of the interactive object; when the same functional object is called a second or subsequent time in the same task phase, the second and subsequent times are first recorded as functional retry candidate events; then, the functional retry candidate events are judged according to the reasonable repeated call rules corresponding to the current target task and task phase. For repeated calls that fall under the categories of quantity increase / decrease, continuous parameter adjustment, pagination or scrolling, text editing, or continuous object selection according to reasonable repeated call rules, they will be excluded from the function retry candidate events; The second and subsequent calls remaining after exclusion are identified as function retry events; whether the first call was successful, whether the expected task state was reached, and whether the feedback was clear are recorded as diagnostic attributes of the function retry reason, but are not necessary conditions for identifying function retry events. Calculate the minimum edit distance between the actual interface state transition sequence and the interface state transition sequence of the comparison baseline path, generate path deviation events based on insertion, deletion or replacement operations and record the path deviation position.
5. The method according to claim 1, characterized in that, The additional operation ratio is calculated as follows: Set task sample The actual sequence of interactive events is The baseline interaction event sequence corresponding to the baseline path is compared as follows: , This represents the total step length of the actual interaction path. The total step length of the baseline interaction path; the completed task samples included in the calculation of this item satisfy... ,when When this happens, the corresponding task samples will be marked as pending inspection and will not be included in the population average calculation; Additional operations are required: ; Task Sample The relative amount of additional operations is: ; The normalized extra operations ratio is: ; For including The sample set of computable task samples, the population extra operation ratio is: 。 6. The method according to claim 1, characterized in that, The invalid interaction rate is calculated as follows: set up For task samples The number of invalid interaction events identified in the process. To determine the number of unique valid interaction events retained in the valid interaction event sequence after a comprehensive cleanup of redundant interaction event locations according to the aforementioned unified location processing method, the task sample... The invalid interaction rate is: ; For including The sample set of computable task samples has a population invalid interaction rate of: ; The denominator of the invalid interaction rate is the sum of the number of invalid interaction events and the number of valid interaction events after unified cleanup. The invalid interaction rate is used to represent the relative degree of invalid interaction events with respect to the baseline of valid interaction events, and does not represent the proportion of invalid interaction events to the total number of original interaction events.
7. The method according to claim 1, characterized in that, The instant rollback rate is calculated as follows: Set task sample The actual interface state transition sequence is as follows , All of the actual interface state transition sequences The union of the interface state transition locations involved in the round-trip structure. The number of unique interface state transition locations is defined in the given set. The number of remaining valid interface state transitions after a complete cleanup according to the unified location processing method is the task sample. The instant rollback rate is: ; For including The sample set of computable task samples has a population immediate backoff rate of: 。 8. The method according to claim 1, characterized in that, The interface revisit rate is calculated as follows: For task samples Any interface state The interface state The access position in the interface state access sequence is represented as follows: ,in , This indicates the access position of interface state p when it appears for the kth time in the interface state access sequence of task sample u. when At that time, the interface state The number of revisit path steps is: ; in, · This is an indicator function; it takes the value 1 if the condition inside the parentheses is true, and 0 otherwise. when season When the same interface state is accessed twice or more, adjacent access pairs formed according to the order of access are judged one by one; if the difference between the positions of two adjacent accesses is greater than 2, it is directly included in the interface revisit rate; when the interface state is accessed again in a subsequent visit, only the new adjacent access pairs formed by the current visit and the previous visit are judged, the adjacent access pairs that have been judged are not counted again, and the total number of visits is no longer set. Task Sample The total number of revisits for all interface states is: ; set up To determine the remaining valid interface state access counts after a comprehensive cleanup using the unified location processing method, the task sample... The interface revisit rate is: ; For including The sample set of computable task samples, with a group interface revisit rate of: ; in, The path steps are accumulated according to the revisit events of each interface state. For the same interface state, each adjacent access pair that satisfies a position difference greater than 2 contributes to the path steps, and subsequent accesses only add a new adjacent access pair. When the revisit intervals of different interface states overlap, each revisit event still contributes to the path steps. The access positions used to generate a valid interface state access sequence are taken as the union of position numbers and processed only once. Therefore, the interface revisit rate represents the cumulative intensity of each adjacent access pair that meets the position interval condition, and does not represent the proportion of non-repeated revisited positions to the total number of original accesses.
9. The method according to claim 1, characterized in that, The function retry rate is calculated as follows: Set task sample The sequence of functional objects is as follows: ; in, The length of the sequence of functional objects; for functional objects in the same task phase The identity of a functional object is represented by a functional identifier or the task target state it points to after being triggered; when there is no stable functional identifier, the identity of the functional object is represented by a combination of interface state identifier, interaction object identifier, and task target state; its identity is reflected in the task sample. The number of triggers in the middle is: ; When the functional object If the number of triggers is greater than 1, the second and subsequent calls will be considered as retry candidates, with the following number of candidates: ; set up For task samples The set of functional objects included in the function retry statistics after excluding reasonable duplicate calls; the reasonable duplicate call refers to the operation that, according to the reasonable duplicate call rule, allows or requires two or more calls to the same functional object within the same task stage to complete the predetermined task state change; the reasonable duplicate call includes at least one of quantity increase / decrease, continuous parameter adjustment, pagination or scrolling browsing, text editing, and continuous object selection; a reasonable duplicate functional object set or reasonable duplicate call rule is established according to the task type and task stage; candidate calls that fall within the scope of reasonable duplicate calls are not included in the function retry count, and the second and subsequent calls remaining after excluding reasonable duplicate calls are included in the function retry count; whether the first call is successful, whether the expected task state is achieved, and whether the feedback is clear are only used as diagnostic attributes for function retry reasons, and are not used as statistical premises for function retry events; Task Sample The sum of the number of function retries for all functional objects included in the statistics is: ; set up To determine the number of unique valid interaction events retained in the valid interaction event sequence after a comprehensive cleanup according to the aforementioned unified location processing method, the task sample... The function retry rate is: ; For including The sample set of computable task samples, the population function retry rate is: ; The denominator of the function retry rate is the sum of the number of function retry events and the number of valid interaction events after unified cleanup. The function retry rate is used to represent the relative degree of function retry events with respect to the baseline of valid interaction events, and does not represent the proportion of function retry events to the total number of original interaction events.
10. The method according to claim 1, characterized in that, The path deviation is calculated as follows: Set task sample The actual interface state transition sequence is as follows The interface state transition sequence of the comparison baseline path is as follows Both the actual interface state transition sequence and the baseline interface state transition sequence are represented using a chain of state nodes, and it is agreed that... This represents the number of interface state transitions contained in the baseline state node chain; using the minimum edit distance where the insertion, deletion, and replacement costs are all 1, the task sample... The relative amount of path deviation is: ; in, The minimum number of insertion, deletion, and replacement operations required to convert the actual interface state node chain into a comparison baseline path state node chain; The normalized path deviation is: ; For including The set of computable task samples, the group path deviation is: 。 11. The method according to claim 1, characterized in that, When multiple backtracking results with the same cost exist in sequence alignment or edit distance calculation, a path matching result is selected according to the preset deterministic backtracking rules; The backtracking direction is determined according to the priority order of matching, replacing, deleting, and inserting. When there are multiple candidate positions under the same priority, the result is determined according to the ascending order of the actual sequence position number and the original log number.
12. The method according to claim 1, characterized in that, The output of the six metrics and the corresponding interface states, interactive objects or functional objects, and original log records for the redundant path segments include: If the same interactive event location, interface state transition location, or interface state access location simultaneously meets two or more path redundancy event identification rules, all path redundancy event types are retained in the path redundancy location record, but only once in the corresponding location set. For closed paths formed by instant rollback events or interface revisit events, the interaction events that trigger the departure from the first closed endpoint, all interaction events occurring within the intermediate interface states of the closed path, and the interaction events that trigger the return to the closed endpoint are included in the redundant interaction event location set. When generating a valid interface state access sequence, the earlier endpoint with the smaller position number is retained, while the later endpoint with the larger position number, intermediate state positions identified as redundant, and associated state transitions are excluded. The number of relationships between adjacent nodes in the cleaned valid interface state node chain is used as the number of valid interface state transitions. The relationships between adjacent nodes are only used to calculate the number of valid state transitions after cleanup and are not used as new interface state transition outputs in the original log. Output the results of six metrics for each task sample, the type of path redundancy event identified, the start and end positions of the path redundancy segment in the interaction event sequence or interface state sequence, the associated interface state, interaction object or function object, whether the position is included in the corresponding result calculation, the cross-sequence position mapping relationship, and one or more corresponding original log numbers. When the denominator of a certain indicator is zero, that indicator for that task sample is marked as uncalculable, and the arithmetic mean is taken only for the calculable task samples when calculating the group indicators. For task samples that have not completed their target tasks, only the types and locations of path redundancy events that can be determined are output. The calculation results of the six indicators for the task sample are not output, nor are they included in the calculation of the group indicators. Output the indicator vector of the task sample: ; in, For task samples The normalized ratio of additional operations, For task samples invalid interaction rate For task samples The instant rollback rate For task samples Interface revisit rate, For task samples Functional retry rate, For task samples The normalized path deviation.
13. A system for automatic identification and quantification of path redundancy in a human-computer interaction interface based on operation logs, characterized in that, include: The log acquisition and standardization module is used to acquire the raw operation logs corresponding to the target task and convert operation logs of different input modalities into standard interactive events. The State and Sequence Reconstruction Module is used to reconstruct the actual interaction event sequence, interface state transition sequence, interface state access sequence, and function object sequence based on standard interaction events. The cross-sequence mapping module is used to establish the correspondence between different sequence positions and between each sequence position and the original log record; The interaction path graph construction module is used to construct a directed interaction path graph with interaction event attributes based on the interface state access sequence and standard interaction events, and to determine the actual interaction path of the current task sample according to the time order of interface state nodes, state transition edges and internal operations of nodes. The baseline path processing module is used to obtain a set of valid baseline paths that meet the constraints of the target task and to determine the comparison baseline path corresponding to the current task sample. The path redundancy event identification module is used to automatically identify additional operation events, invalid interaction events, instant rollback events, interface revisit events, function retry events, and path deviation events, and generate corresponding path redundancy location records. The path redundancy location processing module is used to merge overlapping locations pointed to by different path redundancy event identification rules according to cross-sequence location mapping. While retaining multiple path redundancy event type labels, it ensures that the same location is processed only once when generating a valid interaction sequence. The metrics calculation module is used to calculate the extra operation ratio, invalid interaction rate, instant rollback rate, interface revisit rate, function retry rate, and path deviation. The results output module is used to output six metrics, path redundancy event types, path redundancy segment locations, associated interface status, interactive objects or functional objects, and corresponding raw log records.
