Discovery of sequential patterns is becoming increasingly useful and valuable in many scientific and commercial applications. Consider for example a Microsoft® Office command sequence. It is valuable information for Microsoft Corporation's developers and support personnel to know how the product is used, such as to know the answer to “What other features are used before or after feature X?” or “What do users do after they visit help?” or “Is feature X easy to find?” (which corresponds to knowing how many clicks are needed in order to execute command X).
However, some sequential data cannot be used as is, but rather needs to be segmented in order to be processed. Precisely segmenting such sequential data into suitable units is a desirable task.
This Summary is provided to introduce a selection of representative concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used in any way that would limit the scope of the claimed subject matter.
Briefly, various aspects of the subject matter described herein are directed towards a technology by which sequential data is segmented into units. In one aspect, a finite state machine indentifies sub-sequences in the sequential data that have tree-like microstructures that are similar to one another.
In one aspect, the finite state machine operates by entering a path state when an input is a path command corresponding to a non-leaf node in the tree-like microstructure. Based upon another command, the state machine remains in the path state, or outputs an action unit or a browsing unit. The state machine outputs an action unit when the other command comprises an action command corresponding to a leaf node. The state machine outputs a browsing unit when the other command comprises a path command that is not the parent or the sibling of a next command, or remains in the path state when the other command comprises a path command that is the parent or the sibling of a next command.
Other advantages may become apparent from the following detailed description when taken in conjunction with the drawings.
The present invention is illustrated by way of example and not limited in the accompanying figures in which like reference numerals indicate similar elements and in which:
Various aspects of the technology described herein are generally directed towards segmenting data sequences into units by indentifying sub-sequences with similar tree-like microstructures. In one implementation, this is automatically accomplished via a finite state machine (FSM) that captures the microstructure of sequential data. This allows aggregating sub-sequences belonging to the same unit to establish the structure of the unit.
While Microsoft® Office command sequences and the like are used as examples herein, it should be understood that any of the examples described herein are non-limiting examples. As such, the present invention is not limited to any particular embodiments, aspects, concepts, structures, functionalities or examples described herein. Rather, any of the embodiments, aspects, concepts, structures, functionalities or examples described herein are non-limiting, and the present invention may be used various ways that provide benefits and advantages in computing and data processing in general.
In general, a data transformation mechanism 102 may preprocess the sequential data, such as to remove repeated commands, remove noisy commands, or group similar commands. As described herein, a sequence segmenter 104 segments the sequential data (which may be transformed) into units that are then provided to a pattern extraction mechanism 106 that finds.
In general, sequence segmentation via the sequence segmenter 104 segments the original sequence (following data transformation) into high level units in order to group similar sub-sequences together. In this way, more meaningful patterns are found, for example.
To segment the data, the sequence segmenter 104 identifies sub-sequences with similar tree-like microstructures. For example, some sequential data such as Office applications command sequences and web site browsing sequences are comprise sub-sequences which are in the form of a tree-like microstructure, as generally represented in
There are four kinds of relationships between two nodes that are connected, namely Parent-Child (leaf, dotted arrow), Parent-Child (non-leaf, solid one-directional arrow), Sibling-Sibling (non-leaf, bidirectional arrow) and Sibling-Sibling (leaf, dashed arrow). As the arrows show, a non-leaf node may go to its child nodes or sibling nodes.
A sub-sequence which traverses in this structure following directions is recognized as a unit. In this way, the original sequence is segmented into units and a part of the units end with target items. In
To capture sub-sequences with tree-like microstructure, a finite state machine is used. More particularly, for a sequential data set {x1, x2, . . . xt}, which is generated by a symbol set {s1, s2, . . . sN}, the relationship of every pair of symbols (si, sj) is defined as one of the following: Parent-Child (leaf), Parent-Child(non-leaf), Sibling-Sibling (leaf), Sibling-Sibling (non-leaf), Leaf-Other and Nonleaf-Other. Then the original sequence is automatically segmented into sub-sequences by a finite state machine while each of the sub-sequence is a traverse in the tree-like microstructure.
The formal definition of one suitable finite state machine is described as follows:
Finite State Machine: M Input symbol set: {Null, Parent-Child (non-leaf), Parent-Child (leaf), Sibling-Sibling (non-leaf), Sibling-Sibling (leaf), Leaf-Other, Nonleaf-Other}
Initial state: {Sstart}
End state: {Send}
State set: {SNon-leaf, SLeaf}
The sequence segmenter 104 aggregates together sub-sequences that lead to the same target item to show the access structure of the target item. To this end, some of the sub-sequences generated by segmentation end with the same leaf node. By aggregating these similar sub-sequences together, the sequence segmenter 104 is able to explore the access structure of this leaf node.
By way of example, Microsoft® Office command sequence data will be described herein. In many Office applications, the commands are organized as a tree-structure in the user interface, from a root to a leaf. Leaf commands normally correspond to actions that users want to take, while non-leaf commands mostly serve as the path leading to leaf commands. Thus, two types of multi-command units are defined, namely an action unit comprising a tree traverse ending with a leaf command (e.g. File—FileSaveAsMenu—WordTemplate) and a browsing unit comprising a tree traverse that did not reach a leaf command, (e.g. File—FileSaveAsMenu—FilePrintMenu).
Action and browsing units can be extracted from the command stream with a finite state machine as shown in
To summarize with a more general finite state machine 650 of
Note that when the finite state machine 650 is in the path state 660 and a path command that is not the parent or the sibling of the next command is received, it terminates and outputs a browsing unit. With this finite state machine 650, the command sequence is converted into an action/browsing unit sequence. Note that the described finite state machine is applicable to most applications that have a tree structured user interface.
The units may be aggregated together to show how users access the action from the user interface. With the aggregated information of the units ending with the same leaf command, questions such as “How do users access feature X?” may be answered.
By way of another example, consider comparing the patterns extracted on an original sequence and on segmented units, e.g., using the command “Format Page Number” in Office Word, which provides choices for “Top of Page”, “Bottom of Page”, “Page Margin” and “Current Position” as generally ordered below:
If the pattern extraction algorithm of the aforementioned patent application is applied to the original sequence, the patterns in
The invention is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the invention include, but are not limited to: personal computers, server computers, hand-held or laptop devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and so forth, which perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in local and/or remote computer storage media including memory storage devices.
With reference to
The computer 1010 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by the computer 1010 and includes both volatile and nonvolatile media, and removable and non-removable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by the computer 1010. Communication media typically embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of the any of the above may also be included within the scope of computer-readable media.
The system memory 1030 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 1031 and random access memory (RAM) 1032. A basic input/output system 1033 (BIOS), containing the basic routines that help to transfer information between elements within computer 1010, such as during start-up, is typically stored in ROM 1031. RAM 1032 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 1020. By way of example, and not limitation,
The computer 1010 may also include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only,
The drives and their associated computer storage media, described above and illustrated in
The computer 1010 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 1080. The remote computer 1080 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 1010, although only a memory storage device 1081 has been illustrated in
When used in a LAN networking environment, the computer 1010 is connected to the LAN 1071 through a network interface or adapter 1070. When used in a WAN networking environment, the computer 1010 typically includes a modem 1072 or other means for establishing communications over the WAN 1073, such as the Internet. The modem 1072, which may be internal or external, may be connected to the system bus 1021 via the user input interface 1060 or other appropriate mechanism. A wireless networking component 1074 such as comprising an interface and antenna may be coupled through a suitable device such as an access point or peer computer to a WAN or LAN. In a networked environment, program modules depicted relative to the computer 1010, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
An auxiliary subsystem 1099 (e.g., for auxiliary display of content) may be connected via the user interface 1060 to allow data such as program content, system status and event notifications to be provided to the user, even if the main portions of the computer system are in a low power state. The auxiliary subsystem 1099 may be connected to the modem 1072 and/or network interface 1070 to allow communication between these systems while the main processing unit 1020 is in a low power state.
While the invention is susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. It should be understood, however, that there is no intention to limit the invention to the specific forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents failing within the spirit and scope of the invention.
This patent application is related to U.S. patent application Ser. No. ______ [Attorney docket number 324251.01] filed concurrently herewith, and hereby incorporated by reference.