A method and system for system function analysis based on user access sequence

By constructing a Web system function analysis diagram based on the user access sequence method, it solves the problem of users having difficulty finding information in complex Web systems, provides a more instructive functional structure diagram, reduces redundant information, and does not affect the performance of the Web system. Achieve quick access under network environment.

CN114357349BActive Publication Date: 2024-10-01BEIJING SHULIDE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111653862.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-10-01
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The complex functional structure of the Web system makes it difficult for users to quickly find the information and functions they need, causing users to get lost in an unfamiliar system.

Method used

Establish a functional analysis graph based on user access sequences. By generating system functional nodes, homogeneous classification, association processing and redundant edge elimination, graph structure and tree structure functional graphs are constructed and displayed to users to guide them to quickly access the Web system.

Benefits of technology

It reduces redundant information and provides a more targeted functional structure diagram, including functional node weight information from the user's perspective, guiding users to quickly find specific content and services without relying on the network environment and avoiding network load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114357349B_ABST
    Figure CN114357349B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method and system for system function analysis based on user access sequence, aiming to establish a system function analysis diagram from the perspective of the actual user of the Web system, so as to help users quickly find specific content information and functional services in the Web system. The method includes: establishing a query table according to the access sequence of the user accessing the web page; generating multiple system function nodes corresponding to the multiple data objects respectively according to multiple data objects of HTML type in the access sequence; homogeneously classifying the multiple system function nodes according to the multiple data objects, merging the multiple system function nodes according to the classification results, and obtaining multiple target system function nodes; according to the query table, associating the multiple target system function nodes to obtain a graph structure system function diagram corresponding to the access sequence; displaying the graph structure system function diagram for users to access web pages based on the graph structure system function diagram.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Web systems, and in particular to a method and system for analyzing system functions based on user access sequences. Background Art

[0002] With the rapid development of the Internet, massive demands will be integrated into a Web system, making the functional structure of the Web system more and more complex.

[0003] The increasingly complex functional structure of the Web system is developed by developers based on their own developer perspective, while ignoring the perspective of the users of the Web system. Therefore, for a certain user or a certain user group, they often only need certain key functions in the complex Web system and find the access path to these key functions. This makes users often get lost in various unfamiliar or updated Web systems and cannot quickly find the information content and service functions they need. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide a method and system for system function analysis based on user access sequence, aiming to establish a function analysis diagram of the Web system from the perspective of the actual user of the Web system according to the user's access sequence, so as to help users quickly find specific content information and functional services in the Web system.

[0005] A first aspect of an embodiment of the present application provides a method for system function analysis based on a user access sequence, the method comprising: establishing a query table according to an access sequence of a user accessing a web page;

[0006] According to the multiple data objects of HTML type in the access sequence, a plurality of system function nodes corresponding to the multiple data objects are generated respectively;

[0007] According to the multiple data objects respectively corresponding to the multiple system function nodes, the multiple system function nodes are homogeneously classified, and the multiple system function nodes are merged according to the classification result to obtain multiple target system function nodes;

[0008] According to the query table, the plurality of target system function nodes are associated with each other to obtain a graph structure system function graph corresponding to the access sequence;

[0009] The graph structure system function diagram is displayed so that users can access web pages based on the graph structure system function diagram.

[0010] Optionally, after obtaining the graph structure system function graph corresponding to the access sequence, the method further includes:

[0011] Eliminate redundant edges of the graph structure system function graph according to the timing information and frequency information in the access sequence to obtain a tree structure system function graph corresponding to the access sequence;

[0012] The displaying of the graph structure system function diagram so that the user can access a web page based on the graph structure system function diagram includes: displaying the tree structure system function diagram so that the user can access a web page based on the tree structure system function diagram.

[0013] Optionally, the method further comprises:

[0014] Setting an editing interface on the database server of the tree structure system function diagram;

[0015] According to the user's editing operation, the tree structure system function diagram is edited through the editing interface.

[0016] Optionally, generating a plurality of system function nodes respectively corresponding to the plurality of data objects of HTML type in the access sequence includes:

[0017] Extracting keywords of the plurality of data objects of the HTML type;

[0018] Using the keywords of the multiple data objects of the HTML type as node names, multiple system function nodes corresponding to the multiple data objects of the HTML type are generated.

[0019] Optionally, establishing a query table according to the access sequence of the user accessing the webpage includes:

[0020] Determining data types of data objects in the access sequence;

[0021] The query table is established by using the URL of each data object whose data type is the target data type as an index item, and the target data type is the HTML type or the JavaScript type.

[0022] Optionally, the homogeneously classifying the multiple system function nodes according to the multiple data objects respectively corresponding to the multiple system function nodes, and merging the multiple system function nodes according to the classification results to obtain multiple target system function nodes, includes:

[0023] According to the multiple data objects corresponding to the multiple system function nodes, the multiple system function nodes are homogeneously classified to obtain multiple homogeneous categories;

[0024] The system function nodes in each homogeneous category are merged into a system function node with the highest access frequency in the homogeneous category and used as a target system function node, and a plurality of target system function nodes corresponding to the plurality of homogeneous categories are obtained.

[0025] Optionally, performing association processing on the multiple target system function nodes according to the query table to obtain a graph structure system function graph corresponding to the access sequence includes:

[0026] Inputting the URL of each target system function node into the query table for retrieval, respectively, to obtain a hit function node set corresponding to each target system function node, wherein the hit function node set corresponding to one target system function node includes multiple hit function nodes, and the multiple hit function nodes are multiple preceding target system function nodes whose own URLs match the URL of the one target system function node;

[0027] For each target system function node, establish association relationships from multiple hit function nodes corresponding to the target system function node to the target system function node respectively, where one association relationship is a directed edge from a starting target system function node to an end target system function node;

[0028] According to the association relationship established for each target system function node, the graph structure system function graph is obtained.

[0029] Optionally, when the homogeneous classification is object homogeneous classification, the homogeneous classification of the multiple system function nodes according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories includes:

[0030] Performing request parameter filtering processing on the multiple data objects to obtain multiple pre-processed URLs corresponding to the multiple data objects respectively;

[0031] According to the multiple preprocessing URLs, the system function nodes corresponding to the data objects with the same preprocessing URLs are classified into the same homogeneous category to obtain multiple homogeneous categories;

[0032] When the homogeneous classification is content homogeneous classification, the homogeneous classification of the multiple system function nodes is performed according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including:

[0033] According to the extracted keywords of the plurality of data objects, the system function nodes corresponding to the data objects having matching keywords are classified into the same homogeneous category to obtain a plurality of homogeneous categories;

[0034] When the homogeneous classification includes both object homogeneous classification and content homogeneous classification, the homogeneous classification of the multiple system function nodes is performed according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including:

[0035] According to the multiple preprocessing URLs corresponding to the multiple data objects and the extracted keywords of the multiple data objects, the system function nodes corresponding to the data objects with the same preprocessing URL and matching keywords are classified into the same homogeneous category to obtain multiple homogeneous categories.

[0036] Optionally, performing redundant edge elimination on the graph structure system function graph according to the timing information and frequency information in the access sequence to obtain a tree structure system function graph corresponding to the access sequence includes:

[0037] According to the access frequency and timing information of the starting point target system function node in each association relationship, the edge weight of each association relationship is determined, and the edge weight of each association relationship is the difference between the timing and the access frequency of the starting point target system function node in each association relationship;

[0038] According to the edge weight of each association relationship, determining the association relationship with the smallest edge weight among the association relationships of each terminal target system function node;

[0039] According to the association relationship with the smallest edge weight among the association relationships of each terminal target system function node, the association relationship with edge weight greater than the smallest edge weight among the association relationships of each terminal target system function node is eliminated to obtain a tree structure system function graph corresponding to the access sequence.

[0040] A second aspect of an embodiment of the present application provides a system for system function analysis based on user access sequences, the system comprising:

[0041] A query table building module is used to build a query table according to the access sequence of the user's access to the web page;

[0042] A system function node generation module, used to generate a plurality of system function nodes corresponding to the plurality of data objects respectively according to the plurality of data objects of HTML type in the access sequence;

[0043] A system function node merging module, configured to classify the plurality of system function nodes according to the plurality of data objects respectively corresponding to the plurality of system function nodes, and to merge the plurality of system function nodes according to the classification result to obtain a plurality of target system function nodes;

[0044] A system function node association module, used to perform association processing on the multiple target system function nodes according to the query table to obtain a graph structure system function graph corresponding to the access sequence;

[0045] The display module is used to display the functional diagram of the graph structure system so that users can access the web page based on the functional diagram of the graph structure system.

[0046] On the one hand, the method of system function analysis based on user access sequence described in the present application establishes a function analysis diagram of the Web system from the perspective of the actual user of the Web system according to the user's access sequence, in order to guide the interaction between the user and the system, thereby helping the user to quickly find specific content information and functional services in the Web system.

[0047] On the other hand, the method of system function analysis based on user access sequence described in the present application analyzes and establishes a function analysis diagram of the Web system based on the user access sequence, that is, a function structure diagram of the Web system for the user or the user group to which the user belongs, which is established based on the user access sequence, excludes function points that the current user or user group does not care about, thereby reducing a large amount of redundant information in the analyzed function structure and making it more targeted.

[0048] On the other hand, the method for system function parsing based on user access sequence described in the present application includes the user's access frequency information for each system function node, so that the criticality of each system function node in the user's access path, or the user's attention to the function node can be determined. This makes the functional structure diagram of the Web system established by the analysis include the functional node weight information from the user's perspective, making the established functional structure diagram of the Web system more instructive.

[0049] On the other hand, the method of system function analysis based on user access sequence described in the present application, the user access sequence is based on the user's access in the real-time network environment, and when analyzing and establishing the functional structure diagram of the Web system, it does not need to rely on or affect the current network environment. It mainly includes: there is no requirement for the network transmission speed of the machine performing the analysis task, and it can support large-scale analysis tasks that do not rely on the network transmission speed; there is no requirement for the network accessibility of the machine performing the analysis task, and it can avoid problems such as internal and external domain isolation; it is non-invasive to the target Web system for which the functional structure diagram needs to be established, and only the data records of the previous user's normal access to the target Web system need to be used, so as to avoid causing a large load on the target Web system in a short period of time like a web crawler. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0051] Figure 1 is a flow chart of a method for system function analysis based on user access sequence shown in an embodiment of the present application;

[0052] Figure 2 It is a flowchart of subject word extraction in a method of system function analysis based on user access sequence shown in an embodiment of the present application;

[0053] Figure 3 It is a flowchart of the association of system function nodes based on URL indexes in a method for system function parsing based on user access sequence shown in an embodiment of the present application;

[0054] Figure 4 It is a schematic diagram of establishing a system function diagram in a method for system function analysis based on user access sequence shown in an embodiment of the present application;

[0055] Figure 5 It is a schematic diagram of an editing interface design of a tree structure system function diagram based on a user access sequence shown in an embodiment of the present application;

[0056] Figure 6 is another flow chart of a method for system function analysis based on user access sequence shown in an embodiment of the present application;

[0057] Figure 7 It is a schematic diagram of a system for system function analysis based on user access sequence shown in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0059] Figure 1 1 is a flowchart of a system function analysis based on a user access sequence according to an embodiment of the present application. Figure 1 The present application provides a method for system function analysis based on user access sequence, the method comprising the following steps:

[0060] Step S11: Create a query table based on the access sequence of the user's access to the web pages.

[0061] In this embodiment, the user's access sequence is the access record data generated when the user accesses a Web system, and the access record data is stored in the order of the time when each access operation is executed. In the process of a user accessing a web page, multiple access operations will be generated. According to the multiple access operations, the access record data of the user accessing the web page will be generated, that is, which function nodes the user used in the web page, which content the user browsed, and which sub-web pages or other web pages of the same level were jumped from the current web page through the function nodes of the web page. At the same time, the generated access record data is stored in the order of the time when each access operation is executed.

[0062] Thus, according to a user's operation of accessing a web page, the user's access sequence in the Web system can be obtained. The user's access sequence includes multiple different types of data objects such as HTML, JavaScript, Image, etc. Each data object includes at least timing information and frequency information. The timing information is the execution time sequence of each access operation performed by the user, and the frequency information is the frequency of each function node clicked by the user and the frequency of the content browsed.

[0063] To facilitate recording the user's access sequence, the Web application needs to be run in a customized browser. These customized browsers can easily capture and save the data of each Web request in chronological order. Each time a user performs an access operation, a Web request is initiated. At the same time, the user's access sequence can also be recorded through a network proxy. For each data object in the user's access sequence, the content that needs to be collected includes: URL, HttpResponse and request start time.

[0064] In the user's access sequence, there are many different types of data objects such as HTML, JavaScript, Image, etc. Among them, the data objects associated with the functional structure of the Web system are mainly HTML and JavaScript types. HTML type data objects often directly correspond to a certain system function node, and at the same time contain indication information of the association between system function nodes; JavaScript type data objects often do not directly correspond to a certain system function node, but contain indication information of the association between system function nodes.

[0065] In order to provide an efficient text query function for the subsequent establishment of the association relationship between the system function nodes in the Web system. A corresponding query table is established according to the access sequence of the user to access the web page. The query table establishes an inverted index for the HttpResponse Body data, and its index item is the URL, that is, by entering a URL or a URL fragment in the query table, the HttpResponse Body set associated with the URL or the URL fragment can be obtained, and then the system function node set of the Web system associated with the URL or the URL fragment can be obtained.

[0066] In the present application, step S11 specifically includes: determining the data type of the data object in the access sequence; using the URL of each data object whose data type is the target data type as an index item to establish the query table, and the target data type is HTML type or JavaScript type.

[0067] In the present embodiment, the data types used for the subsequent establishment of the association relationship between the functional nodes of the present application are HTML type and JavaScript type. Therefore, the HTML type and JavaScript type are determined as the target data types, the data objects in the access sequence of the user's access to the web page are traversed, and the data type of each data object is determined according to the "Content-Type" field in the HttpResponseHeader. When the data type of the data object is HTML type or JavaScript type, that is, when the data type of the data object is the target data type, the Http Response Body of the current data object is subjected to text segmentation, and the current data object after text segmentation is added to the inverted index with the URL or URL fragment of the data object as the index item. For other data objects whose data types are HTML type or JavaScript type, they are also added to the inverted index in the above manner, so as to establish a query table for the inverted index of the HttpResponse Body data.

[0068] Step S12: according to the multiple data objects of HTML type in the access sequence, generate multiple system function nodes corresponding to the multiple data objects respectively.

[0069] In this embodiment, in the user access sequence, the data object of HTML type often directly corresponds to a certain system function node, and there are often multiple data objects of HTML type in a user's access sequence. Therefore, according to the data object of HTML data type, the corresponding system function node is generated. Specifically, all data objects in the user access sequence are traversed, and according to the "Content-Type" field in the Http Response Header, it is determined whether each data object is of HTML type: if so, a corresponding system function node is generated for the current data object. The system function node is the various functions of the Web system.

[0070] In the present application, step S12 specifically includes: extracting keywords of the multiple data objects of the HTML type; using the keywords of the multiple data objects of the HTML type as node names, generating multiple system function nodes corresponding to the multiple data objects of the HTML type respectively.

[0071] In this embodiment, the key point of generating the system function node lies in the extraction of the subject words of the system function node, and the generated system function node needs to be named by the extracted subject words. Therefore, the data objects in the user access sequence are traversed, and whether each data object is of HTML type is determined according to the "Content-Type" field in the Http Response Header. When the data object is of HTML type, a corresponding system function node is generated for the data object, and the subject words of the data object are extracted at the same time, and the extracted subject words of the data object are used as the node name of the system function node generated corresponding to the data object. It should be understood that the node name naming method for other HTML type data objects among the multiple HTML type data objects in the user sequence is the same as the above node name naming method, which will not be repeated here.

[0072] In the DOM tree structure of HTML data objects that will be used to generate system function nodes, there is often a title field to indicate the subject of the current page. In this case, the subject words of the data object can be easily extracted. However, in some cases, the title field may be missing, or the text content of the title is too long, so that the current system function node cannot be described relatively briefly. In these cases, the subject word extraction of the system function node needs to rely on the subject word extraction of HTML data. However, there is currently a lack of ready-made methods for extracting subject words from HTML data.

[0073] Therefore, the present application proposes a method for extracting keywords from HTML. Since HTML data contains scattered text information, a large amount of DOM structure information, and scattered JavaScript scripts, the present application proposes a method for extracting keywords from HTML. Before extracting text keywords, the complex HTML data is preprocessed to convert it into simple plain text, and then the text keywords are extracted. After the complex HTML data is preprocessed, the HTML key content and text keywords are extracted from the preprocessed HTML data. Specifically,

[0074] Figure 2 This is a flowchart of keyword extraction in a method of system function analysis based on user access sequence shown in an embodiment of the present application. Referring to Figure 2, first obtain the HTML source data. After obtaining the HTML source data, perform encoding detection on the HTML source data. Common situations include UTF-8 encoding and GBK encoding. Based on the detected encoding type, obtain the source data after HTML decoding so that the Chinese part thereof is correctly decoded. If the Chinese part is not correctly decoded as described above, the subsequent key content extraction, key content segmentation and text keyword extraction processes will not be executed correctly.

[0075] After obtaining the source data after HTML decoding, the source data after HTML decoding is parsed and redundant information therein is filtered. Specifically, the source data after HTML decoding is parsed based on the DOM tree structure, and the script information and style information in the DOM tree structure are filtered, so as to obtain the valid text information in the source data after HTML decoding.

[0076] After obtaining the valid text information of HTML, the key content of the valid text information is extracted through the general web page text extraction technology based on the line block distribution function. Specifically, based on the distribution law of text line blocks in HTML, the key text in HTML is located, so as to extract the key content in the valid text information of HTML.

[0077] After extracting the key content of HTML, perform word segmentation and text keyword extraction on the key content. Use a word segmentation tool library compatible with Chinese and English to first segment the extracted key content to obtain a word segmentation list. Then, use the TF-IDF model to extract topic words, calculate the weight of each word in the word segmentation list, and get the topic words by weight sorting. During the calculation process, named entity recognition filtering can be added to limit the calculation scope to nouns and special nouns, thereby improving the efficiency of the calculation and the accuracy of the topic word results.

[0078] Based on the HTML-oriented keyword extraction method proposed in this application, even if the title field of the HTML data is missing or the text content of the title is too long, keywords can be extracted from the HTML data content to name the corresponding system function nodes generated.

[0079] In this embodiment, the generated system function nodes include node attributes such as keywords, access frequency, homogeneous groups, etc.

[0080] Among them, for the keyword attribute, extraction is performed using the HTML-oriented keyword extraction method. For the access frequency attribute, the access frequency is initialized to 1, and an accumulation operation is performed according to the access of the system function node. Homogeneous grouping specifically sets the data object based on which the system function node is generated as the initial element, and the data objects based on other system function nodes that are homogeneous with the data object based on the current system function node are used as the homogeneous elements corresponding to the initial element, and a homogeneous data object set is formed according to the initial element and the homogeneous elements. A homogeneous grouping identifier is set for each system function node belonging to the same homogeneous data object set, and the homogeneous data object set corresponding to the system function node can be determined according to the homogeneous grouping identifier of the system function node. The homogeneous grouping identifier of the system function node is the specific homogeneous grouping attribute of the system function node. The homogeneous grouping of the system function node is used to record the homogeneous data object set corresponding to the current node, and when merging homogeneous nodes in step S13, a union operation between sets is performed. Among them, the keywords and access frequencies are directly presented to the user in the final system function diagram; the homogeneous grouping is a hidden attribute, which is used for the association operation between the system function nodes in step S14.

[0081] Step S13: homogeneously classify the multiple system function nodes according to the multiple data objects corresponding to each of the multiple system function nodes, merge the multiple system function nodes according to the classification result, and obtain multiple target system function nodes.

[0082] In this embodiment, after generating multiple system function nodes corresponding to the multiple data objects of HTML type in step S12, since the user may visit the same system function node of the Web system twice or more in one round of access, the multiple system function nodes generated based on the multiple data objects of HTML type in the access sequence may have system function nodes with repeated functional properties. At this time, in order to avoid redundancy in the functional structure diagram of the Web system finally generated, it is necessary to merge the system function nodes with repeated functional properties in advance, and only one of the system function nodes with repeated functional properties can be retained. At the same time, it can also avoid the subsequent establishment of redundant association relationships for system function nodes.

[0083] In this embodiment, the system function nodes with repeated functional properties are homogeneous system function nodes. The homogeneity of the system function nodes can be divided into two categories: object homogeneity and content homogeneity.

[0084] Object homogeneity means that two system function nodes point to the same Web backend API, but the specific content returned by the Web backend may be different. Content homogeneity means that the content returned by the Web backend requests corresponding to the two system function nodes is the same or similar, but the Web backend APIs they point to or the presentation forms of the APIs may be different.

[0085] For object homogeneity, it is necessary to determine whether the URLs of the two HTML source data are the same. There may be request parameters in the URL, such as different keywords searched by a search engine, or page number requests for paging in a forum. These URLs with different parameters are essentially requests for the same Web backend API, that is, they belong to the same functional node in the Web system structure. Therefore, when determining whether the URLs are the same, it is necessary to first filter the request parameters and extract the URLs without parameters as the identification unit to determine whether there is object homogeneity.

[0086] Content homogeneity requires determining whether the text content of two HTML source data represents the same system function node. The subject word extraction method for HTML proposed in this application is used to extract subject words, thereby obtaining the title field of each system function node and a weighted ranking list of keywords, which can be used to characterize the text content of HTML. When the title fields of the two system function nodes are not all empty, the two title fields can be directly compared; otherwise, the top three keywords in the keyword list are taken out and compared one by one. Based on the above method, it can be determined whether there is content homogeneity between the two system function nodes.

[0087] Therefore, in this embodiment, based on the source data of multiple data objects of HTML type, it is determined whether there is homogeneity among the multiple system function nodes corresponding to the multiple data objects. The homogeneous system function nodes are classified into the same homogeneous category, and the multiple system function nodes in the same homogeneous category are merged, and only one system function node in the same homogeneous category is retained as the target system function node. Since there are multiple homogeneous categories after homogeneous classification, only one target system function node is retained in each homogeneous category. Therefore, after homogeneous classification, multiple target system function nodes corresponding to the multiple homogeneous categories are obtained.

[0088] For example, the generated system function nodes include system function node 1, system function node 2, system function node 3, system function node 4, and system function node 5. By parsing the source data of the data objects corresponding to each system function node, it is determined that system function node 1 and system function node 2 are homogeneous with each other, and system function node 3, system function node 4, and system function node 5 are homogeneous with each other. Therefore, system function node 1 and system function node 2 are homogeneously classified into the same homogeneous category, and system function node 3, system function node 4, and system function node 5 are classified into the same homogeneous category. Any one of system function node 1 and system function node 2 is retained as the target system function node, and any one of system function node 3, system function node 4, and system function node 5 is retained as the target system function node. Thus, two target system function nodes corresponding to the homogeneous categories are obtained.

[0089] In the present application, step S13 specifically includes: classifying the multiple system function nodes homogeneously according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories; merging the individual system function nodes in each homogeneous category into a system function node with the highest access frequency in the homogeneous category, and using it as the target system function node, to obtain multiple target system function nodes corresponding to the multiple homogeneous categories.

[0090] In this embodiment, due to the different criticality of different system function nodes or the different importance that users attach to different system function nodes, the access frequency of each system function node in the user access process is different. Therefore, in order to make the functional structure diagram of the Web system finally generated and displayed to the user more instructive, so as to help the user quickly find specific content information and functional services in the Web system, the system function node with the highest user access frequency in the same homogeneous category is retained as the target system function node. Therefore, according to the multiple data objects of HTML type corresponding to each of the multiple system function nodes, the multiple system function nodes are homogeneously classified to obtain multiple homogeneous categories. For any one homogeneous category in each homogeneous category, the functional nodes in the homogeneous category are merged, that is, only the system function node with the highest access frequency in the homogeneous category is retained as the target system function node. Thus, each homogeneous category in the multiple homogeneous categories can obtain a target system function node. Thus, multiple target system function nodes corresponding to the multiple homogeneous categories are obtained.

[0091] In the present application, when the homogeneous classification is object homogeneous classification, the multiple system function nodes are homogeneously classified according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including: performing request parameter filtering processing on the multiple data objects to obtain multiple preprocessing URLs corresponding to the multiple data objects; and classifying the system function nodes corresponding to the data objects with the same preprocessing URL into the same homogeneous category according to the multiple preprocessing URLs to obtain multiple homogeneous categories. When the homogeneous classification is content homogeneous classification, the multiple system function nodes are homogeneously classified according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including: classifying the system function nodes corresponding to the data objects with matching subject words into the same homogeneous category according to the extracted subject words of each of the multiple data objects to obtain multiple homogeneous categories. When the homogeneous classification includes both object homogeneity classification and content homogeneity classification, the multiple system function nodes are homogeneously classified according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including: according to the multiple preprocessing URLs corresponding to each of the multiple data objects and the extracted keywords of each of the multiple data objects, the system function nodes corresponding to the data objects with the same preprocessing URL and matching keywords are classified into the same homogeneous category to obtain multiple homogeneous categories.

[0092] In this embodiment, the homogeneity of system function nodes can be divided into two categories: object homogeneity and content homogeneity. Classifying the homogeneity of system function nodes includes object homogeneity classification and content homogeneity classification.

[0093] In this embodiment, the generated multiple system function nodes can be homogeneously classified based only on object homogeneity, that is, the URLs in the multiple data objects corresponding to the generated multiple system function nodes are obtained, the URLs in the obtained multiple data objects are preprocessed, and the request parameters in the URLs are filtered out, thereby obtaining multiple preprocessed URLs corresponding to the generated multiple system function nodes.

[0094] Among the obtained multiple preprocessing URLs, there are the same preprocessing URLs and there are different preprocessing URLs. Each system function node with the same preprocessing URL is classified into the same homogeneous category, thereby obtaining multiple homogeneous categories.

[0095] For example, the generated system function nodes include system function node A, system function node B, system function node C, system function node D, and system function node E. By performing request parameter filtering processing on multiple data objects corresponding to each of the system function nodes A, B, C, D, and E, multiple preprocessing URLs corresponding to the multiple data objects are obtained, which are preprocessing URLa, preprocessing URLa, preprocessing URLb, preprocessing URLb, and preprocessing URLb. Based on the obtained multiple preprocessing URLs, the system function node A and the system function node B whose preprocessing URLs are both URLa are classified into the same homogeneous category, and the system function nodes C, system function nodes D, and system function nodes E whose preprocessing URLs are both URLb are classified into the same homogeneous category.

[0096] In this embodiment, the generated multiple system function nodes can be homogeneously classified based only on content homogeneity, that is, the keywords of the multiple data objects corresponding to the generated multiple system function nodes are obtained, wherein the keywords of the data objects are extracted by the HTML-oriented keyword extraction method proposed in the above application.

[0097] Among the subject words of the obtained multiple data objects, there are the same subject words and there are different subject words. The system function nodes with the same subject words are classified into the same homogeneous category, thereby obtaining multiple homogeneous categories.

[0098] In this embodiment, another optional implementation is that the present application extracts keywords through the HTML-oriented keyword extraction method proposed in this application, thereby obtaining the title field of each system function node and a weighted ranking list of keywords, which can be used to characterize the text content of HTML. When the title field of the system function node is not completely empty, the title field can be matched directly; otherwise, the top three keywords in the weight ranking in the keyword list are taken out and compared one by one. When the top three keywords in the weight ranking of two system function nodes are matched, it is determined that the contents of the two system function nodes are homogeneous. Based on the above method, it can be determined whether there is content homogeneity between each system function node. Each system function node with the same content homogeneity is divided into the same homogeneous category, thereby obtaining multiple homogeneous categories.

[0099] Step S14: performing association processing on the plurality of target system function nodes according to the query table to obtain a graph structure system function diagram corresponding to the access sequence.

[0100] In this embodiment, the association between system function nodes is established based on the link relationship between HTML data. However, the link relationship between HTML data has a certain complexity, which is specifically manifested in the indirectness of HTML jump and the ambiguity of URL matching.

[0101] Indirect nature of HTML jump: There is not necessarily a direct jump relationship between the two HTMLs that a user jumps to when clicking on a page, but one or more JavaScript data objects may be used as intermediaries. For example, an HTML data may contain a URL or URL fragment of a JavaScript file, and in the code of this JavaScript file, an Ajax request is used to obtain the data of another HTML.

[0102] Based on the indirect nature of HTML jumps, that is, the link relationship between HTML can be based on URLs, which directly reflects the link jumps between different Web system function nodes; however, some Web system function nodes lack direct HTML link jump relationships, but use one or some JavaScript files as intermediaries for jumps. Therefore, even if JavaScript itself does not represent each specific Web system function node, they need to be added to the query table of the user access sequence, otherwise it may cause the Web system function nodes corresponding to some HTML data to be isolated from the overall Web system function analysis graph, and it is impossible to form a connected graph.

[0103] Therefore, the data in the query table of the user access sequence needs to include two categories, HTML and JavaScript, so that subsequent retrieval through the query table can determine the link relationship between the HTML data. Based on the determined link relationship between the HTML data, the association relationship between the target system function nodes is more accurate.

[0104] The fuzziness of URL matching is that the link information in HTML or JavaScript data is not necessarily a complete URL, but may only contain URL fragments. In the actual link process, the browser dynamically splices the URL fragments to obtain the complete link information and complete the link jump. This makes it impossible to directly use full text matching for URL matching.

[0105] Therefore, based on the characteristic that the slicing of URL uses the Linux file separator " / " as a separator, the reverse process of the browser dynamically splicing URLs can be adopted, and the complete URL is used as the initial query item to search in the query table of the user access sequence. If the hit node set retrieved is empty, the currently retrieved URL is sliced ​​and downgraded from the head, with " / " as the section mark, a section of its head is removed, and the obtained URL fragment is used as the input for the next query. If the hit node set retrieved next time is still empty, the above-mentioned slicing downgrade process and retrieval matching process are looped until the hit node set retrieved is not empty, or the URL fragment after the current query can no longer be sliced. As a result, when the association relationship between the target system function nodes cannot be established according to the complete URL, the association relationship between the target system function nodes is established through the URL fragment, so that the association relationship between the target system function nodes finally established is more complete.

[0106] In this embodiment, for each target system function node obtained after the merging in step S13, the URL or URL fragment of each target system function node is used as input and retrieved in the query table. Since the user's access sequence is an access sequence based on the time sequence, it is only necessary to retrieve the target system function node that performs the access operation before the target system function node corresponding to the input URL, that is, the predecessor target system function node of the current target system function node. In this way, the hit node set corresponding to the target system function node corresponding to the currently input URL is obtained, and an association relationship of directed edges pointing from each target system function node in the hit node set to the target system function node corresponding to the currently input URL is established, thereby establishing an association relationship of the target system function node corresponding to the currently input URL. Among them, the target system function nodes in the hit node set are the target system function nodes that match the URL of the target system function node corresponding to the currently input URL.

[0107] In this embodiment, Figure 3 This is a flowchart of the association of system function nodes based on URL indexes in a method for system function parsing based on user access sequences shown in an embodiment of the present application. Figure 3 First, enter the full URL of the target system function node in the query table for query. When the query result is empty, split the full URL with the last " / ", retain only the first URL fragment before the last " / ", and continue to enter the first URL fragment into the query table for query. When the query result is empty, split the full URL with the second-to-last " / ", retain only the second URL fragment before the penultimate " / ", and continue to enter the second URL fragment into the query table for query, and repeat this cycle until the query result is obtained, that is, the hit node set corresponding to the target system function node corresponding to the currently entered URL is obtained.

[0108] The association relationships of all target system function nodes are established using the above association relationship establishment method. After the association relationships of all target system function nodes are established, a graph structure system function graph corresponding to the user's access sequence is obtained.

[0109] In the present application, step S14 specifically includes: inputting the URL of each target system function node into the query table for retrieval, obtaining a set of hit function nodes corresponding to each target system function node, the set of hit function nodes corresponding to a target system function node includes multiple hit function nodes, and the multiple hit function nodes are multiple preceding target system function nodes whose own URLs match the URL of the target system function node; for each target system function node, establishing an association relationship in which the multiple hit function nodes corresponding to the target system function node point to the target system function node respectively, and an association relationship is a directed edge from the starting target system function node to the end target system function node; according to the association relationship established for each target system function node, the graph structure system function graph is obtained.

[0110] In this embodiment, by finding the spatial dependency between different functional nodes, corresponding directed edges are added to them in the graph structure, so as to associate the Web system functional nodes. The URL or URL fragment of each target system functional node obtained after the merging in step S13 is used as input and retrieved in the query table respectively.

[0111] Take any one of all the target system function nodes as an example for explanation. The URL or URL fragment of the target system function node is used as input to search in the query table. In the retrieval process, only the previous target system function nodes before the target system function node are searched, and all the previous target system function nodes whose URL or URL fragment matches the URL or URL fragment of the target system function node are obtained to form the hit node set of the target system function node. The target system function nodes in the hit node set are collectively referred to as the hit nodes corresponding to the target system function node. For the target system function node, an association relationship of directed edges pointing to the target system function node by each hit node in the hit node set is established. Each directed edge corresponds to an association relationship, and the target system function node that issues the directed edge in each directed edge is the starting target system function node in the association relationship, and the target system function node pointed to by the directed edge is the end target system function node in the association relationship. According to all the established association relationships, the corresponding graph structure system function diagram is obtained. The establishment of the association relationship among other target system function nodes in all target system function nodes is the same as the above-mentioned establishment method, which will not be repeated here.

[0112] For example, Figure 4 1 is a schematic diagram of establishing a system function diagram in a method for system function analysis based on user access sequence according to an embodiment of the present application. Figure 4 ,After generating multiple target system function nodes a, b, c, d, e, f, g, and h, the URL or URL fragment of each target system ,function node is used as input to retrieve in the query table of the user ,access sequence.

[0113] The URL or URL fragment of the target system function node e is used as input to search in the query table of the user access sequence. Since the target system function node preceding the current target system function node is searched, and for the target system function node e, if you want to access the target system function node e, you need to first access any one of the target system function nodes a, b, and c, and then access the target system function node e through the any one. Therefore, the predecessor target system function nodes of the target system function node e are the target system function nodes a, b, and c. At this time, the URL or URL fragment of the target system function node e is used as input to search in the query table of the user access sequence, and the target system function nodes a, b, and c are retrieved, and then the URLs or URL fragments of the target system function nodes a, b, and c are matched with the URL or URL fragment of the target system function node e respectively. It should be understood that if the input is a URL, the URLs of the target system function nodes a, b, and c are matched with the URL of the target system function node e respectively; if the input is a URL fragment, the URL fragments of the target system function nodes a, b, and c are matched with the URL fragments of the target system function node e respectively. Because the target system function nodes a, b, and c are directly related to the target system function node e, the URLs or URL fragments of the target system function nodes a, b, and c can match the URLs or URL fragments of the target system function node e, and the hit node set of the target system function node e includes the target system function nodes a, b, and c. Thus, an association relationship is established for the target system function node e, in which the target system function nodes a, b, and c point to the target system function node e respectively. In the multiple association relationships, the target system function nodes a, b, and c belong to the starting point target system function node respectively, and the target system function node e belongs to the end point target system function node.

[0114] It should be understood that inputting the URL or URL fragment of the target system function node means first entering the complete URL of the target system function node into the query table for query. When no query result is obtained, the complete URL is sliced ​​and downgraded, and the URL fragment after the slice is downgraded is entered into the query table for query, and the query is stopped until the query result is obtained or the slice is downgraded to the last level.

[0115] The URL or URL fragment of the target system function node h is used as input to search in the query table of the user access sequence. Since the target system function node preceding the current target system function node is searched, for the target system function node h, if you want to access the target system function node h, you can access any one of the target system function nodes a, b, and c, and then access the target system function node e through the target system function node e, and then access the target system function node h through the target system function node e; or access the target system function node f through the target system function node d, and then access the target system function node h through the target system function node f; or directly access the target system function node h through the target system function node g. Therefore, the target system function nodes preceding the target system function node h are the target system function nodes a, b, c, d, e, f, and g. At this time, the URL or URL fragment of the target system function node h is used as input, and is searched in the query table of the user access sequence, and the target system function nodes a, b, c, d, e, f, and g are retrieved, and then the URL or URL fragment of the target system function node a, b, c, d, e, f, and g are matched with the URL or URL fragment of the target system function node e. Because the target system function nodes e, f, and g are directly related to the target system function node h, the URL or URL fragment of the target system function node e, f, and g can match the URL or URL fragment of the target system function node h, and the hit node set of the target system function node e includes the target system function nodes e, f, and g. Therefore, an association relationship is established for the target system function node h, with the target system function nodes e, f, and g pointing to the target system function node h.

[0116] For the target system function node f, if you want to access f, you only need to access the target system function node d to access the target system function node f. Therefore, the preceding target system function node of the target system function node f is the target system function node d. At the same time, the target system function node d is directly associated with the target system function node f, so the URL or URL fragment of the target system function node d matches the target system function node f. Thus, an association relationship is established for the target system function node f, from the target system function node d to the target system function node f.

[0117] In this embodiment, when the association relationship of all target system function nodes is established, the graph structure system function graph corresponding to the user's access sequence is also completed.

[0118] Step S15: displaying the graph structure system function diagram, so that the user can access the web page based on the graph structure system function diagram.

[0119] In this embodiment, the graph structure system function diagram established based on the access sequence of a user can be displayed in the corresponding Web system to guide the user's access behavior in the Web system. The user can quickly find specific content information and functional services based on the graph structure system function diagram. At the same time, for a same user group, the system function nodes of interest may be similar. Therefore, the graph structure system function diagram established based on the access sequence of a user can be displayed to users in the same user group as the user to guide the access behavior of each user in the group in the Web system. Each user in the group can quickly find specific content information and functional services based on the graph structure system function diagram. For example, for a school's portal website, the student user group is more concerned about related functions or content such as grade query. The graph structure system function diagram established based on the access sequence of a student can be used to guide the access behavior of all users in the student user group. Therefore, the graph structure system function diagram established based on the access sequence of the student can be pushed to all users in the student user group to guide the access behavior of all users in the group.

[0120] The method for system function analysis based on user access sequence described in this application has the following advantages:

[0121] On the one hand, the method of system function analysis based on user access sequence described in the present application establishes a function analysis diagram of the Web system from the perspective of the actual user of the Web system according to the user's access sequence, in order to guide the interaction between the user and the system, thereby helping the user to quickly find specific content information and functional services in the Web system.

[0122] On the other hand, the method of system function analysis based on user access sequence described in the present application analyzes and establishes a function analysis diagram of the Web system based on the user access sequence, that is, a function structure diagram of the Web system for the user or the user group to which the user belongs, which is established based on the user access sequence, excludes function points that the current user or user group does not care about, thereby reducing a large amount of redundant information in the analyzed function structure and making it more targeted.

[0123] On the other hand, the method for system function parsing based on user access sequence described in the present application includes the user's access frequency information for each system function node, so that the criticality of each system function node in the user's access path, or the user's attention to the function node can be determined. This makes the functional structure diagram of the Web system established by the analysis include the functional node weight information from the user's perspective, making the established functional structure diagram of the Web system more instructive.

[0124] On the other hand, the method of system function analysis based on user access sequence described in the present application, the user access sequence is based on the user's access in the real-time network environment, and when analyzing and establishing the functional structure diagram of the Web system, it does not need to rely on or affect the current network environment. It mainly includes: there is no requirement for the network transmission speed of the machine performing the analysis task, and it can support large-scale analysis tasks that do not rely on the network transmission speed; there is no requirement for the network accessibility of the machine performing the analysis task, and it can avoid problems such as internal and external domain isolation; it is non-invasive to the target Web system for which the functional structure diagram needs to be established, and only the data records of the previous user's normal access to the target Web system need to be used, so as to avoid causing a large load on the target Web system in a short period of time like a web crawler.

[0125] In the present application, the method also includes: eliminating redundant edges of the graph structure system function diagram according to the timing information and frequency information in the access sequence to obtain a tree structure system function diagram corresponding to the access sequence; and displaying the tree structure system function diagram for users to access web pages based on the tree structure system function diagram.

[0126] In this embodiment, the path dependency of the system function diagram of the graph structure established based on the access path to the system function nodes in the user's access sequence is too complex, and the system function structure diagram displayed by the system function diagram of the graph structure is still relatively complex. In order to enable users to more intuitively and conveniently guide web page access through the system function structure diagram, the established system function diagram of the graph structure is optimized to a more hierarchical tree structure.

[0127] In the present application, the redundant edges of the graph-structured system function diagram are eliminated according to the timing information and frequency information in the access sequence to obtain a tree-structured system function diagram corresponding to the access sequence, specifically including: determining the edge weight of each association relationship according to the access frequency and timing information of the starting point target system function node in each association relationship, the edge weight of each association relationship being the difference between the timing and access frequency of the starting point target system function node in each association relationship; determining the association relationship with the smallest edge weight among the association relationships of each terminal target system function node according to the edge weight of each association relationship; eliminating the association relationships with edge weights greater than the smallest edge weight among the association relationships of each terminal target system function node according to the association relationship with the smallest edge weight among the association relationships of each terminal target system function node, to obtain the tree-structured system function diagram corresponding to the access sequence.

[0128] In this embodiment, automatic optimization based on redundant edge reduction is adopted, and the graph structure with complex path dependence is optimized into a hierarchical tree structure according to the timing information and frequency information in the user access sequence, specifically: the system function graph of the graph structure is optimized by the minimum tree graph algorithm. The input is the system function graph of the graph structure, and the output is the system function graph of the tree structure with redundant edges removed. The goal of removing redundant edges is to reduce the in-degree of each target system function node in the graph structure to 1, so that each target system function node contains only one preceding target system function node. Specifically: according to the timing information and frequency information of each data object corresponding to each target system function node in the user access sequence, the access frequency and access time of each target system function node can be determined. According to the access time of each target system function node, a timing numerical number is assigned to all target system function nodes in the order of access time. The earlier the access time, the smaller the timing numerical number.

[0129] According to the access frequency and sequential numerical number of each target system function node, the edge weight of each association relationship is determined. Specifically, taking one of the association relationships as an example, the sequential numerical number of the starting point target system function node in the association relationship is subtracted from the access frequency to obtain the edge weight of the association relationship. The edge weights of other association relationships are the same as the above-mentioned implementation method for determining the association relationship, which will not be repeated here.

[0130] In this embodiment, those target system function nodes with earlier timing and higher access frequency are more critical target system function nodes, and such nodes should be selected first. Target system function nodes with earlier timing and higher access frequency have smaller edge weights. Therefore, after obtaining the edge weights of all associations, the edge weights of all associations pointing to the same terminal target system function node are sorted, and the one with the smallest edge weight is determined, and all other associations except the one with the smallest edge weight are deleted. Thus, for each terminal target system function node, only one association with the smallest edge weight pointing to itself is retained. Thus, the elimination of redundant edges in the system function graph with a graph structure is completed, and a tree structure system function graph corresponding to the access sequence is obtained.

[0131] It should be understood that a target system function node can only be one of the starting target system function node and the end target system function node in one association relationship. However, a target system function node can belong to both the starting target system function node and the end target system function node in multiple association relationships. Figure 4In the association relationship from target system function node a to target system function node e, target system function node e is the end target system function node; in the association relationship from target system function node e to target system function node h, target system function node e is the start target system function node. Figure 4 In the association relationship where the target system function node d points to the target system function node f, the target system function node f is the end point target system function node; in the association relationship where the target system function node f points to the target system function node h, the target system function node f is the start point target system function node, and so on.

[0132] In this embodiment, since the Web system access process has a time sequence, that is, when a link jump from A to B occurs, A always appears before B in the user access sequence. Therefore, in the process of retrieving URL matching in step S14, only the system function nodes preceding the URL are retrieved, so that there will be no loop in the system function parsing diagram finally generated in step S14. In this way, in the process of solving the minimum tree graph algorithm, it is no longer necessary to detect and remove loops, saving time overhead.

[0133] In this embodiment, in the process of solving the minimum tree graph algorithm, connectivity judgment is required. The process of connectivity judgment refers to the process of cyclic elimination of loops, and it is necessary to judge whether all nodes in the current directed graph are connected one by one. If there are unconnected nodes, the execution of the minimum tree graph algorithm fails and the algorithm process ends. In the process of solving the tree structure system function diagram, there are two possibilities for unconnectability: one is that the user directly enters the URL to jump during the access process, and the jump may not satisfy the link jump relationship of HTML; the other possibility is that HTML has a deeper link jump relationship, which exceeds the scope of iterative retrieval and cyclic degradation matching adopted by the present invention. For example, there may be complex URL splicing that is not based on the Linux file separator " / ". For the two types of unconnectability, in the following feedback optimization based on human-computer interaction, the situation of non-connected graphs can be processed by manual optimization with the help of artificial information.

[0134] In the present application, the method further includes: setting an editing interface on the database server of the tree structure system function diagram; and editing the tree structure system function diagram through the editing interface according to the user's editing operation.

[0135] In this embodiment, a visualized tree-structured system function diagram is provided to the user, and the user can further edit and optimize the generated tree-structured system function diagram so that the tree-structured system function diagram finally displayed to the user for guiding the user to access the web page is more in line with the user's access behavior. By setting an editing interface for the database server where the tree-structured system function diagram is located, the generated tree-structured system function diagram is edited through the editing interface according to the user's editing operation behavior.

[0136] On the server side associated with the database of the tree structure system function diagram, a REST interface is provided for adding, deleting, modifying and querying the tree structure system function diagram. At the same time, a corresponding visualization function is provided on the front end, and a corresponding REST request is sent to the back end interface, thereby providing a human-computer interaction function available to users.

[0137] The front-end human-computer interaction interface is mainly used to display and edit the tree-structure system function diagram. In the design of front-end and back-end interaction, the BPMN interaction language that can describe the tree-structure system function diagram is defined. Based on the description symbols and description capabilities of BPMN, users can add nodes, modify nodes, delete nodes, add directed edges, delete directed edges, and drag graphics on the tree-structure system function diagram.

[0138] The backend is mainly connected to the database of the tree structure system function diagram, and provides the frontend with a REST interface for adding, deleting, modifying and querying the tree structure system function diagram.

[0139] In this embodiment, Figure 5 1 is a schematic diagram of an editing interface design of a tree structure system function diagram based on a user access sequence according to an embodiment of the present application. Figure 5 The function analysis diagram adding interface is used to load the access time sequence input by the user, or load the corresponding user access sequence from the system database according to the information specified by the user, and execute the aforementioned steps S12-S14 to generate a graph structure system function diagram, and complete the automatic optimization based on redundant edge reduction to generate a tree structure system function diagram, and save it in the database of the back-end tree structure system function diagram.

[0140] The function analysis diagram deletion interface can delete the corresponding tree structure system function diagram from the backend database according to the tree structure system function diagram ID returned by the front end.

[0141] The function analysis diagram modification interface makes corresponding modifications in the database of the back-end tree structure system function diagram according to the modification information recorded by the front-end and the tree structure system function diagram ID returned by the front-end.

[0142] The function analysis diagram query interface receives the user query item returned by the front end, searches for a data set whose name matches the query item in the database of the tree structure system function diagram, and returns the data set to the front end.

[0143] In this embodiment, the editing interface is set up to provide a visualized tree structure system function diagram to the user, so that the user can edit the tree structure, thereby generating feedback information for the Web system function structure, and further optimizing the visualized tree structure system function diagram according to the feedback information, so that the obtained tree structure system function diagram is more suitable for guiding users to access web pages. At the same time, the situation of the non-connected graph can be processed according to the user's feedback information.

[0144] In this embodiment, the method for system function analysis based on user access sequence disclosed in the embodiment of the present invention establishes two important models: user access sequence S and Web system function structure G. User access sequence S is a one-dimensional time structure, S = {item|item∈T}. Among them, T is the access trace Trace recorded during the user's access to the Web system, item is the Web resource object contained in the access trace, and the composition of item is<timestamp,url,response,type> , where timestamp is the timestamp of the user accessing the resource object, url is the URL of the resource in the network, response is the content of the response package returned when the user accesses the resource, and type is the object type of the resource (such as HTML, JavaScript, and Text). The functional structure G of the Web system is a two-dimensional spatial structure. The composition of G is<F,R> , f∈F, r∈R. Among them, f is the functional node of the Web system, and the composition of f is<name,weight,info> , where name is the keyword of the current Web system function node, weight is the weight of the current Web system function node, and info is the relevant information of the current Web system function node; r is the association relationship between the Web system function nodes, and r is composed of<source,destination> , source∈F, destination∈F, where source is the starting point of the association relationship, destination is the end point of the association relationship, and r is represented as a directed edge in the directed graph, from the source node to the destination node.

[0145] In this embodiment, Figure 6 1 is another flow chart of a method for system function analysis based on user access sequence according to an embodiment of the present application. Figure 6,The present invention includes a data preparation phase, in which the access sequences of users are collected and a query table is established according to the access sequences of users.

[0146] In the stage of converting the time series into the spatial structure, the present invention converts the one-dimensional time structure of the user access sequence S into the two-dimensional spatial structure of the Web system functional structure G. This stage includes the following three steps: generation of Web system functional nodes, merging of Web system functional nodes, and association between Web system functional nodes.

[0147] In the spatial structure optimization stage, the present invention optimizes the two-dimensional spatial structure of the generated Web system functional structure G, and optimizes the complex directed graph into a hierarchical tree structure, thereby displaying a more instructive Web system functional structure to the user. This stage includes the following two steps: automatic optimization based on redundant edge reduction, and feedback optimization based on human-computer interaction.

[0148] Among them, before the automatic optimization based on redundant edge reduction. The system functional structure diagram of the graph structure is obtained based on the link relationship between Web pages, which contains a complex jump network between different functional levels, making different functional levels intertwined with each other and unable to directly determine the level to which they belong. Therefore, this application reduces the complex graph structure into a tree structure with hierarchical information based on the timing information and access frequency information in the user access sequence.

[0149] The method for system function analysis based on user access sequence disclosed in the embodiment of the present invention also has the following advantages:

[0150] The method for system function analysis based on user access sequence described in the present invention optimizes the system function diagram of graph structure into a system function diagram of tree structure through automatic optimization of redundant edge reduction, so that the system function diagram finally presented to the user is more hierarchical, and the user can more intuitively access the web page through the tree structure system function diagram. And the feedback optimization based on human-computer interaction further optimizes the tree structure system function diagram. Since the feedback optimization is based on the user's feedback information, the optimized system function diagram is more suitable for guiding the user to access the web page.

[0151] On the other hand, the present application provides a system for system function analysis based on user access sequence. Figure 7 1 is a structural diagram of a system for system function analysis based on user access sequence according to an embodiment of the present application. Figure 7 , the system 700 comprises:

[0152] A query table establishment module 701 is used to establish a query table according to the access sequence of the user accessing the web page;

[0153] A system function node generation module 702, configured to generate a plurality of system function nodes corresponding to the plurality of data objects respectively according to the plurality of data objects of HTML type in the access sequence;

[0154] The system function node merging module 703 is used to classify the multiple system function nodes according to the multiple data objects corresponding to the multiple system function nodes, and merge the multiple system function nodes according to the classification results to obtain multiple target system function nodes;

[0155] The system function node association module 704 is used to perform association processing on the multiple target system function nodes according to the query table to obtain a graph structure system function graph corresponding to the access sequence;

[0156] The display module 705 is used to display the graph structure system function diagram so that the user can access the web page based on the graph structure system function diagram.

[0157] Furthermore, the system 700 further includes:

[0158] An optimization module, configured to eliminate redundant edges of the graph structure system function diagram according to the timing information and frequency information in the access sequence, and obtain a tree structure system function diagram corresponding to the access sequence;

[0159] The display module 705 includes a first display module, which is used to display the tree structure system function diagram so that the user can access the web page based on the tree structure system function diagram.

[0160] Furthermore, the system 700 further includes:

[0161] The interactive module is used to set an editing interface on the database server of the tree structure system function diagram; and edit the tree structure system function diagram through the editing interface according to the user's editing operation.

[0162] Furthermore, the system function node generation module 702 includes:

[0163] A subject word extraction module, used for extracting subject words of the plurality of data objects of the HTML type;

[0164] The system function node generation submodule is used to generate a plurality of system function nodes corresponding to the plurality of data objects of the HTML type respectively by taking the subject words of the plurality of data objects of the HTML type as node names.

[0165] Furthermore, the query table establishment module 701 includes:

[0166] A data type determination module, used to determine the data type of the data object in the access sequence;

[0167] The query table establishment submodule is used to establish the query table by taking the URL of each data object whose data type is the target data type as an index item, and the target data type is the HTML type or the JavaScript type.

[0168] Furthermore, the system function node merging module 703 includes:

[0169] A homogeneous classification module, configured to perform homogeneous classification on the plurality of system function nodes according to the plurality of data objects respectively corresponding to the plurality of system function nodes, so as to obtain a plurality of homogeneous categories;

[0170] The target system function node determination module is used to merge the system function nodes in each homogeneous category into a system function node with the highest access frequency in the homogeneous category and use it as the target system function node, and obtain multiple target system function nodes corresponding to the multiple homogeneous categories respectively.

[0171] Furthermore, the system function node association module 704 includes:

[0172] A hit function node set determination module is used to input the URL of each target system function node into the query table for retrieval, and obtain a hit function node set corresponding to each target system function node. The hit function node set corresponding to one target system function node includes multiple hit function nodes, and the multiple hit function nodes are multiple preceding target system function nodes whose own URLs match the URL of the one target system function node;

[0173] An association relationship establishment module is used to establish, for each target system function node, an association relationship in which a plurality of hit function nodes corresponding to the target system function node point to the target system function node respectively, wherein one association relationship is a directed edge from a starting target system function node to an end target system function node;

[0174] The system function node association submodule is used to obtain the graph structure system function graph according to the association relationship established with each target system function node.

[0175] Furthermore, when the homogeneous classification is an object homogeneous classification, the homogeneous classification module is used to perform request parameter filtering processing on the multiple data objects to obtain multiple preprocessing URLs corresponding to the multiple data objects respectively; based on the multiple preprocessing URLs, the system function nodes corresponding to the data objects with the same preprocessing URLs are classified into the same homogeneous category to obtain multiple homogeneous categories;

[0176] When the homogeneous classification is content homogeneous classification, the homogeneous classification module is used to classify the system function nodes corresponding to the data objects matching the subject words into the same homogeneous category according to the extracted subject words of the multiple data objects, so as to obtain multiple homogeneous categories;

[0177] When the homogeneous classification includes both object homogeneous classification and content homogeneous classification, the homogeneous classification module is used to classify the system function nodes corresponding to the data objects with the same preprocessing URL and matching keywords into the same homogeneous category according to the multiple preprocessing URLs corresponding to the multiple data objects and the extracted keywords of the multiple data objects, so as to obtain multiple homogeneous categories.

[0178] Furthermore, the optimization module includes:

[0179] The edge weight determination module of the association relationship is used to determine the edge weight of each association relationship according to the access frequency and timing information of the starting point target system function node in each association relationship, and the edge weight of each association relationship is the difference between the timing and the access frequency of the starting point target system function node in each association relationship;

[0180] The optimization submodule is used to determine the association relationship with the smallest edge weight among the association relationships of each terminal target system function node according to the edge weight of each association relationship; based on the association relationship with the smallest edge weight among the association relationships of each terminal target system function node, eliminate the association relationships with edge weights greater than the smallest edge weight among the association relationships of each terminal target system function node, so as to obtain a tree structure system function graph corresponding to the access sequence.

[0181] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0182] The above is a detailed introduction to a method and system for system function analysis based on user access sequence provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0183] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

Claims

1. A method for system function analysis based on user access sequence, It is characterized in that The method comprises: Create a query table based on the access sequence of users accessing web pages; According to the multiple data objects of HTML type in the access sequence, a plurality of system function nodes corresponding to the multiple data objects are generated respectively; Classifying the multiple system function nodes according to the multiple data objects corresponding to the multiple system function nodes, merging the multiple system function nodes according to the classification results, and obtaining multiple target system function nodes, wherein the homogeneity of the system function nodes includes object homogeneity and content homogeneity, determining whether the system function nodes belong to object homogeneity based on whether the URLs of the two HTML source data are the same, and determining whether the system function nodes belong to content homogeneity based on whether the text contents of the two HTML source data represent the same system function node; According to the query table, the plurality of target system function nodes are associated with each other to obtain a graph structure system function graph corresponding to the access sequence; Displaying the graph structure system function diagram so that users can access web pages based on the graph structure system function diagram; The step of performing association processing on the plurality of target system function nodes according to the query table to obtain a graph structure system function graph corresponding to the access sequence includes: Inputting the URL of each target system function node into the query table for retrieval, respectively, to obtain a hit function node set corresponding to each target system function node, wherein the hit function node set corresponding to one target system function node includes multiple hit function nodes, and the multiple hit function nodes are multiple preceding target system function nodes whose own URLs match the URL of the one target system function node; For each target system function node, establish association relationships from multiple hit function nodes corresponding to the target system function node to the target system function node respectively, where one association relationship is a directed edge from a starting target system function node to an end target system function node; According to the association relationship established for each target system function node, the graph structure system function graph is obtained.

2. The method according to claim 1, It is characterized in that After obtaining the graph structure system function graph corresponding to the access sequence, the method further includes: Eliminate redundant edges of the graph structure system function graph according to the timing information and frequency information in the access sequence to obtain a tree structure system function graph corresponding to the access sequence; The displaying of the graph structure system function diagram so that the user can access a web page based on the graph structure system function diagram includes: displaying the tree structure system function diagram so that the user can access a web page based on the tree structure system function diagram.

3. The method according to claim 2, It is characterized in that The method further comprises: Setting an editing interface on the database server of the tree structure system function diagram; According to the user's editing operation, the tree structure system function diagram is edited through the editing interface.

4. The method according to claim 1, It is characterized in that The step of generating a plurality of system function nodes respectively corresponding to the plurality of data objects of HTML type in the access sequence includes: Extracting keywords of the plurality of data objects of the HTML type; Using the keywords of the multiple data objects of the HTML type as node names, multiple system function nodes corresponding to the multiple data objects of the HTML type are generated.

5. The method according to claim 2, It is characterized in that The step of establishing a query table according to the access sequence of the user accessing the webpage includes: Determining data types of data objects in the access sequence; The query table is established by using the URL of each data object whose data type is the target data type as an index item, and the target data type is the HTML type or the JavaScript type.

6. The method according to claim 1, It is characterized in that The method of homogenizing the plurality of system function nodes according to the plurality of data objects respectively corresponding to the plurality of system function nodes, and merging the plurality of system function nodes according to the classification results to obtain a plurality of target system function nodes includes: According to the multiple data objects corresponding to the multiple system function nodes, the multiple system function nodes are homogeneously classified to obtain multiple homogeneous categories; The system function nodes in each homogeneous category are merged into a system function node with the highest access frequency in the homogeneous category and used as a target system function node, and a plurality of target system function nodes corresponding to the plurality of homogeneous categories are obtained.

7. The method according to claim 6, It is characterized in that When the homogeneous classification is object homogeneous classification, the homogeneous classification of the multiple system function nodes is performed according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including: Performing request parameter filtering processing on the multiple data objects to obtain multiple pre-processed URLs corresponding to the multiple data objects respectively; According to the multiple preprocessing URLs, the system function nodes corresponding to the data objects with the same preprocessing URLs are classified into the same homogeneous category to obtain multiple homogeneous categories; When the homogeneous classification is content homogeneous classification, the homogeneous classification of the multiple system function nodes is performed according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including: According to the extracted keywords of the plurality of data objects, the system function nodes corresponding to the data objects having matching keywords are classified into the same homogeneous category to obtain a plurality of homogeneous categories; When the homogeneous classification includes both object homogeneous classification and content homogeneous classification, the homogeneous classification of the multiple system function nodes is performed according to the multiple data objects corresponding to each of the multiple system function nodes to obtain multiple homogeneous categories, including: According to the multiple preprocessing URLs corresponding to the multiple data objects and the extracted keywords of the multiple data objects, the system function nodes corresponding to the data objects with the same preprocessing URL and matching keywords are classified into the same homogeneous category to obtain multiple homogeneous categories.

8. The method according to claim 1, It is characterized in that Eliminating redundant edges of the graph structure system function graph according to the timing information and frequency information in the access sequence to obtain a tree structure system function graph corresponding to the access sequence includes: According to the access frequency and timing information of the starting point target system function node in each association relationship, the edge weight of each association relationship is determined, and the edge weight of each association relationship is the difference between the timing and the access frequency of the starting point target system function node in each association relationship; According to the edge weight of each association relationship, determining the association relationship with the smallest edge weight among the association relationships of each terminal target system function node; According to the association relationship with the smallest edge weight among the association relationships of each terminal target system function node, the association relationship with edge weight greater than the smallest edge weight among the association relationships of each terminal target system function node is eliminated to obtain a tree structure system function graph corresponding to the access sequence.

9. A system for analyzing system functions based on user access sequences, It is characterized in that The system comprises: A query table building module is used to build a query table according to the access sequence of the user's access to the web page; A system function node generation module, used to generate a plurality of system function nodes corresponding to the plurality of data objects respectively according to the plurality of data objects of HTML type in the access sequence; A system function node merging module is used to classify the multiple system function nodes according to the multiple data objects corresponding to the multiple system function nodes, merge the multiple system function nodes according to the classification results, and obtain multiple target system function nodes, wherein the homogeneity of the system function nodes includes object homogeneity and content homogeneity, and whether the system function nodes belong to object homogeneity is determined based on whether the URLs of the two HTML source data are the same, and whether the system function nodes belong to content homogeneity is determined based on whether the text contents of the two HTML source data represent the same system function node; A system function node association module, used to perform association processing on the multiple target system function nodes according to the query table to obtain a graph structure system function graph corresponding to the access sequence; A display module, used to display the graph structure system function diagram, so that users can access the web page based on the graph structure system function diagram; Among them, the system function node association module is used to input the URL of each target system function node into the query table for retrieval, and obtain the hit function node set corresponding to each target system function node. The hit function node set corresponding to a target system function node includes multiple hit function nodes, and the multiple hit function nodes are multiple preceding target system function nodes whose own URLs match the URL of the target system function node; and is used to establish, for each target system function node, an association relationship in which the multiple hit function nodes corresponding to the target system function node point to the target system function node respectively, and an association relationship is a directed edge from the starting target system function node to the end target system function node; and is used to obtain the graph structure system function graph according to the association relationship established for each target system function node.