Page function identification method based on semantic analysis

Through methods based on semantic analysis, combined with semantic analysis and page structure analysis, the problem of being unable to effectively distinguish page functions in the existing technology is solved, achieving a deeper understanding and higher accuracy, adapting to complex network environments, and meeting user needs. .

CN118535218APending Publication Date: 2024-08-23SHANGHAI LANXUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410580996.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technology cannot effectively distinguish page functions, relies on the identification of specific page elements, is difficult to cope with complex and changeable network environments, and lacks deep semantic understanding and dynamic page processing capabilities.

Method used

Using a method based on semantic analysis, preliminary analysis is performed by obtaining the page content to determine whether there is a dynamic interactive page, and in-depth analysis is carried out. It combines semantic analysis, page structure analysis, fuzzy logic reasoning and user behavior simulation to extract keywords, sentiment analysis, Topic modeling and context parsing for deeper understanding and greater accuracy.

Benefits of technology

It achieves deeper semantic understanding, better dynamic page processing capabilities and higher accuracy, and can more comprehensively and accurately identify the functions and content of the page, adapt to complex network environments, and meet user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535218A
    Figure CN118535218A
Patent Text Reader

Abstract

The invention discloses a semantic analysis-based page function identification method. The method specifically comprises the following steps of: obtaining page contents; performing preliminary analysis on the page content to obtain a first analysis result; based on the first analysis result, judging whether the page content has a dynamic interaction page or not, and performing deep analysis to obtain a second analysis result; and when all contents in the page contents are analyzed, outputting a first analysis result and a second analysis result. The method can have deeper semantic understanding, better dynamic page processing capability, higher accuracy and intelligence, and can more comprehensively and accurately identify the function and content of the page, thereby better meeting the requirements of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of artificial intelligence semantic analysis, and in particular to a page function recognition method based on semantic analysis. Background Art

[0002] At present, the prior art usually parses the HTML source code of the page to extract various elements therein, such as titles, paragraphs, links, etc.; then, builds a DOM tree and analyzes its structure to understand the hierarchical relationship and layout of the elements on the page. Then, the CSS style sheet of the page is analyzed to understand the appearance and style characteristics of the page, such as font size, color, margin, etc.; and the JavaScript code on the page is executed to capture the dynamically loaded elements and interactive behaviors of the page, such as asynchronously loaded content, interactive components, etc.; through pre-defined patterns or rules, specific patterns or structures on the page are identified, such as advertising areas, navigation menus, article content, etc. The prior art also uses machine learning techniques, such as text classification, image recognition, etc., to identify the theme and content of the page from the text content and image information of the page; and analyzes the user's interactive behavior on the page, such as clicks, scrolling, dwell time, etc., to understand the user's interest and preference for the page. Therefore, the prior art cannot effectively distinguish the problem of page function, and relies on the identification of specific page elements, and cannot effectively cope with the complex and changing network environment. Summary of the invention

[0003] The purpose of the present invention is to propose a page function identification method based on semantic analysis, which can have a deeper semantic understanding, better dynamic page processing capabilities, higher accuracy and intelligence, and can more comprehensively and accurately identify the functions and content of the page, thereby better meeting the needs of users.

[0004] In order to solve the above technical problems, the present invention provides a method for identifying page functions based on semantic analysis, which specifically includes the following steps:

[0005] Get the page content;

[0006] Performing a preliminary analysis on the page content to obtain a first analysis result;

[0007] Based on the first analysis result, determining whether the page content has a dynamic interactive page, and performing in-depth analysis to obtain a second analysis result;

[0008] When all contents in the page content are analyzed, the first analysis result and the second analysis result are output.

[0009] Furthermore, the obtaining of the page content specifically includes: starting a program, inputting a target address, and obtaining the page content according to the target address.

[0010] Furthermore, the preliminary analysis of the page content specifically includes: semantic analysis and page structure analysis of the page content.

[0011] Furthermore, semantic analysis is performed on the page content, specifically including: keyword extraction, sentiment analysis, topic modeling and context parsing of the page content.

[0012] Furthermore, the TF-IDF algorithm is used to extract keywords from the page content; the user's emotional color related to the page function is identified; the theme from the page content is extracted; and the relationship between the user's historical access records and the current page is analyzed.

[0013] Furthermore, the page structure analysis of the page content specifically includes: real-time monitoring of structural changes of the personal data page, capturing dynamically loaded elements of the page; classifying the page elements by type; analyzing the correlation between the elements, and forming a relationship diagram.

[0014] Furthermore, the determining whether the page content has a dynamic interactive page and performing an in-depth analysis specifically includes: if there is a dynamic interactive page in the page content, performing fuzzy logic reasoning, context-aware analysis, and simulating user behavior; and then determining whether there are other dynamic contents; if there is no dynamic interactive page in the page content, directly performing content analysis and saving and outputting the analysis results.

[0015] Furthermore, if there are dynamic interactive pages in the page content, after performing fuzzy logic reasoning, context-aware analysis and simulating user behavior, if there are other dynamic contents, return to the previous step and continue to determine whether there are dynamic interactive pages in the page content, and perform in-depth analysis. Otherwise, save and output the analysis results.

[0016] Furthermore, if there is a dynamic interactive page in the page content, fuzzy logic reasoning and context-aware analysis are performed, specifically including: combining fuzzy information from different sources and using a fuzzy set fusion module to improve the understanding of the personal profile page function; building a fuzzy logic reasoning engine based on a rule base and experience to handle the ambiguity of the personal profile page function; analyzing the user's historical behavior on the personal profile page to form a user behavior model; considering the device information used by the user, adapting the personal profile page functions on different devices.

[0017] Furthermore, if there is a dynamic interactive page in the page content, user behavior is simulated, specifically including: dynamically generating simulated user behavior according to the user behavior model to increase authenticity; and simulating different path selections of the user on the personal profile page.

[0018] Through the above technical solution, the present invention has the following beneficial effects:

[0019] By obtaining the page content; performing a preliminary analysis on the page content to obtain a first analysis result; based on the first analysis result, determining whether the page content has a dynamic interactive page, and performing a further analysis to obtain a second analysis result; when all the contents in the page content have been analyzed, outputting the first analysis result and the second analysis result. This method can have a deeper level of semantic understanding, better dynamic page processing capabilities, higher accuracy and intelligence, and can more comprehensively and accurately identify the functions and contents of the page, thereby better meeting the needs of users. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a flow chart of a method for identifying page functions based on semantic analysis in one embodiment of the present invention;

[0021] Figure 2 The figure is a specific flow chart of a method for identifying page functions based on semantic analysis in one embodiment of the present invention. DETAILED DESCRIPTION

[0022] A method for identifying page functions based on semantic analysis of the present invention will be described in more detail below in conjunction with the accompanying drawings, wherein preferred embodiments of the present invention are shown. It should be understood that those skilled in the art may modify the present invention described herein while still achieving the advantageous effects of the present invention. Therefore, the following description should be understood as being widely known to those skilled in the art and not as a limitation of the present invention.

[0023] The present invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. The advantages and features of the present invention will become more apparent from the following description. It should be noted that the accompanying drawings are in very simplified form and are not in exact proportions, and are only used to facilitate and clearly assist in illustrating the purpose of the embodiments of the present invention.

[0024] like Figure 1-2 As shown, the embodiment of the present invention proposes a convenient and practical method for identifying page functions based on semantic analysis, which specifically includes the following steps:

[0025] S1. Get page content;

[0026] S2. Perform a preliminary analysis on the page content to obtain a first analysis result;

[0027] S3. Based on the first analysis result, determine whether the page content has a dynamic interactive page, and perform in-depth analysis to obtain a second analysis result;

[0028] S4. When all contents in the page content have been analyzed, the first analysis result and the second analysis result are output.

[0029] In S1, the obtaining of the page content specifically includes: starting a program, inputting a target address, and obtaining the page content according to the target address.

[0030] In S2, the preliminary analysis of the page content specifically includes: semantic analysis and page structure analysis of the page content.

[0031] In this embodiment, semantic analysis is performed on the page content, specifically including: keyword extraction, sentiment analysis, topic modeling and context parsing of the page content.

[0032] More specifically, the TF-IDF (Term Frequency-Inverse Document Frequency) algorithm is used to extract keywords from the page content, which is a statistical method used for information retrieval and text mining, to increase the focus on the page functions; the sentiment analysis module is used to identify the user's emotional color related to the page function to better understand the user's expectations; the topic modeling module is used to extract the theme from the page content to further refine the understanding of the function; and the context information is analyzed, including analyzing the user's historical access records and the current page relationship, to improve the contextual awareness of the function.

[0033] Those skilled in the art will appreciate that, while achieving the same effect, other algorithms besides the TF-IDF algorithm may also be used to extract keywords.

[0034] In this embodiment, the page structure analysis of the page content specifically includes: real-time monitoring of structural changes of the personal data page (such as DOM structure changes, DOM structure is Document Object Model), capturing dynamically loaded elements of the page, and ensuring accurate parsing of the dynamic page; classifying page elements by type, such as buttons, input boxes, to establish a more sophisticated functional model; analyzing the correlation between elements to form a relationship diagram to help understand the dependency between page functions.

[0035] In S3, it is determined whether the page content has a dynamic interactive page, and an in-depth analysis is performed, specifically including: if there is a dynamic interactive page in the page content, fuzzy logic reasoning, context-aware analysis and simulation of user behavior are performed; then it is determined whether there are other dynamic contents; if there is no dynamic interactive page in the page content, content analysis is directly performed and the analysis results are saved and output.

[0036] In this embodiment, if there is a dynamic interactive page in the page content, after performing fuzzy logic reasoning, context-aware analysis, and simulating user behavior, if there is other dynamic content, return to the previous step and continue to determine whether the page content has a dynamic interactive page and perform in-depth analysis. Otherwise, save and output the analysis results.

[0037] Among them, if there is a dynamic interactive page in the page content, fuzzy logic reasoning and context-aware analysis are performed, specifically including: combining fuzzy information from different sources, using a fuzzy set fusion module to improve the understanding of the personal profile page function, that is, improving the understanding of complex semantics; based on the rule base and experience, building a fuzzy logic reasoning engine to handle the ambiguity of the personal profile page function and improve accuracy; analyzing the user's historical behavior on the personal profile page to form a user behavior model to help better understand user expectations; considering the device information used by the user, the personal profile page functions on different devices are more carefully adapted.

[0038] Furthermore, if there is a dynamic interactive page in the page content, user behavior is simulated, specifically including: dynamically generating simulated user behavior (such as clicking and scrolling) according to the user behavior model to increase authenticity; and simulating different path choices of the user on the personal profile page to improve the comprehensive coverage of page functions.

[0039] In a specific example, for example, a profile page of a social media platform is used for functional identification in order to better understand the interests and hobbies of the user.

[0040] More specifically, under the semantic analysis module: extract keywords from the page content to be analyzed. Specifically, use the TF-IDF algorithm to extract keywords from the personal profile page, such as the user's interests, hobbies, work, etc. Perform sentiment analysis on the page content to be analyzed. Specifically, perform sentiment analysis on the text content of the personal profile page to understand the user's attitude and emotional color towards different topics. Perform topic modeling on the page content to be analyzed. Specifically, extract topics from the personal profile page, such as the user's interest areas, social circles, etc., through the topic modeling module. Perform context analysis on the page content to be analyzed. Specifically, analyze the user's historical access records and the current page relationship, such as the topics that the user has browsed before, the social circles related to the current page, etc.

[0041] Furthermore, under the page structure analysis module: DOM changes are monitored for the page content to be analyzed. Specifically, the DOM structure changes of the personal profile page are monitored in real time to capture dynamically loaded elements, such as the user's latest dynamic updates, circle of friends information, etc. The page content to be analyzed is classified into page elements. Specifically, the page elements are classified by type, such as avatars, personal profiles, friend lists, etc., to establish a more refined functional model. The page content to be analyzed is analyzed for correlation. Specifically, a relationship diagram is formed by analyzing the correlation between elements, such as the correlation between a user's friend list and his or her interests and hobbies.

[0042] Since there are dynamic interactive pages in the page content, the fuzzy set fusion module is used to improve the understanding of the functions of the profile page by combining fuzzy information from different sources, such as keyword extraction and sentiment analysis. Based on the rule base and experience, a fuzzy inference engine is built to handle the fuzziness of the functions of the profile page and improve accuracy. The user's historical behavior on the profile page, such as browsing history and likes and comments, is analyzed to form a user behavior model to help better understand the user's interests and preferences (behavioral history analysis). Considering the device information used by the user, such as device model and operating system, the profile page functions on different devices are more carefully adapted (device information consideration). According to the user behavior model, the user's click, scroll and other behaviors are dynamically generated to increase authenticity. Simulate the different path choices of users on the profile page (user path simulation), such as clicking on different tags and viewing different content, to improve the comprehensive coverage of page functions.

[0043] In another specific example, for example, content analysis and function identification are performed on an article page of a news website. The specific steps are as follows:

[0044] S100, start the program and input the target address: the user starts the program and inputs the URL of the article page of the target news website.

[0045] S102, page content acquisition: the program accesses the URL of the target website and obtains the HTML source code of the article page.

[0046] S103, semantic analysis module: keyword extraction: use TF-IDF algorithm to extract keywords from page text, such as the topic of the article, key concepts, etc.; sentiment analysis: identify the emotional color of the article content through sentiment analysis, and understand the author's attitude and emotional tendency; topic modeling: use topic modeling technology to extract the theme of the article content, such as the topic discussed in the article, the field involved, etc.; context analysis: analyze the user's historical access records and the current page relationship, such as related articles previously browsed by the user, topics related to the current page, etc.

[0047] S104, page structure analysis module: DOM change monitoring: real-time monitoring of DOM structure changes of article pages, capturing dynamically loaded elements, such as comment area, related news recommendations, etc.; page element classification: classifying page elements by type, such as article title, text content, author information, etc.; correlation analysis: forming a relationship diagram by analyzing the correlation between elements, such as the correlation between article content and related news recommendations.

[0048] S105, determine whether the page is a dynamic interactive page: If the page contains dynamic interactive elements, the program enters step S106 to perform fuzzy logic reasoning, context perception and user behavior simulation. If the page does not contain dynamic interactive elements, the program performs content analysis and saves the results, and enters step S107 to end the task and output the results.

[0049] Step S106, fuzzy logic reasoning: use fuzzy logic reasoning engine to deal with the fuzziness of page content and improve the understanding of article functions; context awareness: analyze the user's historical access records and current page relationships to help better understand the user's interests and preferences; user behavior simulation: simulate the user's click, scroll and other behaviors according to the user behavior model to increase the comprehensive coverage of article page functions; determine whether there are other dynamic contents: if the page still contains other dynamic contents, the program returns to step S105 to continue processing. When all page contents are analyzed, the program saves the results and enters step S107 to end the task and output the results.

[0050] S107, end the task and output the result.

[0051] Therefore, this embodiment has the following beneficial effects compared with the comparative documents: 1. Deeper semantic understanding: Traditional page recognition programs mainly focus on the structure and content of the page, while this embodiment can understand the meaning and implications of the page more deeply through the semantic analysis module, including keyword extraction, sentiment analysis, topic modeling, etc., so as to grasp the theme and content of the page more accurately. 2. Dynamic page processing ability: Traditional page recognition programs have limited processing capabilities for dynamic pages, while this embodiment can monitor page changes in real time and capture dynamically loaded elements through the page structure analysis module and the step of judging whether there is a dynamic interactive page, so as to better meet the recognition needs of dynamic pages. 3. Fuzzy logic reasoning improves accuracy: This embodiment introduces a fuzzy logic reasoning module, which can handle the fuzziness of page content, improve the understanding and accuracy of page functions, and make the recognition results more accurate and reliable. 4. More intelligent user behavior simulation: Traditional page recognition programs often lack the ability to simulate user behavior, while this embodiment can dynamically generate simulated user clicks, scrolling and other behaviors according to the user behavior model through the user behavior simulation module, so that page recognition is closer to real user behavior and improves the comprehensiveness and accuracy of recognition. 5. Better context-awareness: This embodiment can analyze the user's historical access records and current page relationships through context analysis and context-aware modules, better understand the user's interests and preferences, and thus more accurately identify the functions and content of the page, thereby improving the accuracy and pertinence of identification.

[0052] Therefore, compared with traditional page recognition programs, this embodiment has a deeper semantic understanding, better dynamic page processing capabilities, higher accuracy and intelligence, and can more comprehensively and accurately identify the functions and content of the page, thereby better meeting user needs.

[0053] In summary, the method for identifying page functions based on semantic analysis proposed in the present invention has the following advantages:

[0054] By obtaining the page content; performing a preliminary analysis on the page content to obtain a first analysis result; based on the first analysis result, determining whether the page content has a dynamic interactive page, and performing a further analysis to obtain a second analysis result; when all the contents in the page content have been analyzed, outputting the first analysis result and the second analysis result. This method can have a deeper level of semantic understanding, better dynamic page processing capabilities, higher accuracy and intelligence, and can more comprehensively and accurately identify the functions and contents of the page, thereby better meeting the needs of users.

[0055] In addition, this method can realize intelligent recognition of web page functions, aiming to solve the problem that existing technologies cannot effectively distinguish page functions. Through advanced natural language processing and semantic analysis technology, it is possible to deeply understand the content of the page, so as to accurately identify key functions. Unlike traditional text recognition, this method does not rely on the recognition of specific page elements, but improves the accuracy of function identification by understanding the semantic information of the page. This method can better cope with changes in page structure, while improving adaptability to dynamic pages, ensuring comprehensive and accurate capture of the functional characteristics of the page. Through this method, it is possible to effectively cope with complex and changing network environments, providing a more reliable solution for function identification.

[0056] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A page function identification method based on semantic analysis, characterized in that: The details include: Get the page content; Performing a preliminary analysis on the page content to obtain a first analysis result; Based on the first analysis result, determining whether the page content has a dynamic interactive page, and performing in-depth analysis to obtain a second analysis result; When all contents in the page content are analyzed, the first analysis result and the second analysis result are output.

2. The method for identifying page functions based on semantic analysis according to claim 1, characterized in that: The obtaining of the page content specifically includes: starting a program, inputting a target address, and obtaining the page content according to the target address.

3. The method for identifying page functions based on semantic analysis according to claim 1, characterized in that: The preliminary analysis of the page content specifically includes: semantic analysis and page structure analysis of the page content.

4. The method for identifying page functions based on semantic analysis according to claim 3, characterized in that: The page content is subjected to semantic analysis, specifically including: keyword extraction, sentiment analysis, topic modeling and context parsing of the page content.

5. The method for identifying page functions based on semantic analysis according to claim 4, characterized in that: The TF-IDF algorithm is used to extract keywords from the page content; the user's emotional color related to the page function is identified; the theme from the page content is extracted; and the user's historical access records and the current page relationship are analyzed.

6. The method for identifying page functions based on semantic analysis according to claim 3, characterized in that: The page structure analysis of the page content specifically includes: real-time monitoring of structural changes of the personal data page, capturing dynamically loaded elements of the page; classifying the page elements according to type; and analyzing the correlation between the elements to form a relationship diagram.

7. The method for identifying page functions based on semantic analysis according to claim 1, characterized in that: The determining whether the page content has a dynamic interactive page and performing an in-depth analysis specifically includes: if there is a dynamic interactive page in the page content, performing fuzzy logic reasoning, context-aware analysis, and simulating user behavior; and then determining whether there are other dynamic contents; if there is no dynamic interactive page in the page content, directly performing content analysis and saving and outputting the analysis results.

8. The method for identifying page functions based on semantic analysis according to claim 7, characterized in that: If there is a dynamic interactive page in the page content, after performing fuzzy logic reasoning, context-aware analysis and simulating user behavior, if there is other dynamic content, return to the previous step and continue to determine whether there is a dynamic interactive page in the page content, and perform in-depth analysis. Otherwise, save and output the analysis results.

9. The method for identifying page functions based on semantic analysis according to claim 7, characterized in that: If there is a dynamic interactive page in the page content, fuzzy logic reasoning and context-aware analysis are performed, specifically including: combining fuzzy information from different sources and using a fuzzy set fusion module to improve the understanding of the personal profile page function; building a fuzzy logic reasoning engine based on a rule base and experience to handle the ambiguity of the personal profile page function; analyzing the user's historical behavior on the personal profile page to form a user behavior model; considering the device information used by the user, adapting the personal profile page functions on different devices.

10. The method for identifying page functions based on semantic analysis according to claim 9, characterized in that: If there is a dynamic interactive page in the page content, the user behavior is simulated, specifically including: dynamically generating simulated user behavior according to the user behavior model to increase authenticity; and simulating different path selections of the user on the personal profile page.