Data verification method and system for Internet data
By building a data comparison library and rules, combined with deep learning and machine learning technology, rapid comparison and in-depth analysis of Internet data are achieved, solving the problems of low accuracy and low efficiency in the existing technology, and ensuring the efficiency and efficiency of data. Accurate and secure verification.
Patent Information
- Application Number
- CN202410762125.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-27
AI Technical Summary
Existing Internet data verification methods have problems such as low accuracy, low efficiency, and the inability to ensure the security of data sources. They cannot effectively identify the deep meaning and semantic relationships of data, and the verification efficiency of large amounts of data is low, and cannot meet the needs of real-time and Efficiency needs.
Build a data comparison library, information data comparison rules, URL comparison rules and update comparison rules to achieve rapid comparison and in-depth analysis of Internet data through text preprocessing, feature extraction, deep learning model analysis and machine learning analysis. and real-time security checks to ensure data accuracy and reliability.
It improves the accuracy and efficiency of data verification, can identify erroneous content, sensitive content and abnormal addresses, ensures the reliability and security of data sources, and reduces the cost and time of data verification.
Smart Images

Figure CN118714044A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data verification, and in particular to a data verification method and system for Internet data. Background Art
[0002] With the rapid development of Internet technology, data has become one of the core resources of modern society. However, in the process of data generation, transmission and use, due to various reasons, the quality of data is often difficult to guarantee. There are problems such as errors, duplications, sensitivity, confidentiality, and privacy. These problems not only affect the accuracy and reliability of the data, but may also bring serious legal and security risks. Therefore, how to efficiently and accurately verify the quality of Internet data has become an issue that needs to be solved urgently.
[0003] At present, Internet data verification mainly relies on traditional data comparison and verification methods, but these methods have many limitations in practical applications. First, traditional data comparison methods can usually only perform simple text comparisons and cannot effectively identify the deep meaning and semantic relationships of the data, resulting in inaccurate verification results. Secondly, for the verification of large amounts of data, traditional methods are often inefficient and cannot meet the requirements of real-time and efficiency. In addition, traditional methods lack effective verification of network resources such as URLs and cannot ensure the reliability and security of data sources. Summary of the invention
[0004] In view of this, the present invention proposes a data verification method and system for Internet data, which can solve the defects of low accuracy, low efficiency and inability to ensure the security of data source in the prior art.
[0005] The technical solution of the present invention is achieved in this way:
[0006] A data verification method for Internet data, specifically comprising:
[0007] Building a data comparison library, which is used to quickly compare and verify text on Internet data;
[0008] Constructing information data comparison rules, which are used to conduct in-depth analysis and comparison of Internet data;
[0009] Constructing URL comparison rules, wherein the URL comparison rules are used to check the security of Internet data URL addresses in real time;
[0010] Constructing update comparison rules, which are used to quickly identify newly-posted data under the target address;
[0011] The real-time Internet data is verified according to the data comparison library, information data comparison rules, URL comparison rules and update comparison rules, thereby realizing data verification of Internet data.
[0012] As a further optional solution of the data verification method for Internet data, the data comparison library performs rapid text comparison and verification on Internet data, specifically including:
[0013] Perform text preprocessing on Internet data, including word segmentation, stop word removal, and stemming;
[0014] Perform feature extraction on Internet data after text preprocessing, including extracting features of each word and its context;
[0015] The features of each word and its context are input into the preset model for prediction, and the wrong word recognition result containing a set of potential correct word candidates is obtained.
[0016] As a further optional solution of the data verification method for Internet data, the input preset model generates a set of potential correct word candidates for the wrong vocabulary using the following formula:
[0017]
[0018] Among them, W e It is a wrong word, W c is the correct word candidate, C is the context information of the wrong word, P(W c |W e ,C) is the candidate word W under the given wrong word and its context c The probability of being the correct word.
[0019] As a further optional solution of the data verification method for Internet data, the information data comparison rule performs in-depth analysis and comparison on Internet data, specifically including:
[0020] Based on the pre-trained Transformer_FLX recognition and parsing model, parse the HTML code and attachment content in the Internet data and identify the DOM node where the article body is located;
[0021] Perform text cleaning based on the DOM node where the article body is located, removing non-text elements, blank characters and stop words;
[0022] The HTML code and attachment content that remove non-text elements, whitespace characters, and stop words are judged for erroneous content, sensitive content, prohibited content, confidential content, privacy-related content, and content with self-defined meaning.
[0023] As a further optional solution of the data verification method for Internet data, the URL comparison rule checks the security of the URL address of the Internet data in real time, specifically including:
[0024] Based on the pre-trained Transformer_FLX recognition and parsing model, the address link contained in the HTML code is parsed, and the returned status code is returned to determine whether it is an invalid address. For the address that can be accessed normally, the text, pictures and videos on the page are analyzed to determine whether they are abnormal addresses.
[0025] A data verification system for Internet data, comprising:
[0026] A first construction module is used to construct a data comparison library, wherein the data comparison library is used to perform rapid text comparison and verification on Internet data;
[0027] The second construction module is used to construct information data comparison rules, and the information data comparison rules are used to perform in-depth analysis and comparison of Internet data;
[0028] The third construction module is used to construct a URL comparison rule, wherein the URL comparison rule is used to check the security of the URL address of Internet data in real time;
[0029] A fourth construction module is used to construct an update comparison rule, wherein the update comparison rule is used to quickly identify newly-posted data under the target address;
[0030] The verification module is used to verify the real-time Internet data according to the data comparison library, information data comparison rules, URL comparison rules and update comparison rules, so as to realize data verification of Internet data.
[0031] As a further optional solution of the data verification system for Internet data, the data comparison library includes:
[0032] The text preprocessing module is used to perform text preprocessing on Internet data, including word segmentation, stop word removal and stem extraction;
[0033] A feature extraction module is used to extract features from Internet data after text preprocessing, including extracting features of each word and its context;
[0034] The prediction module is used to input the features of each word and its context into a preset model for prediction, and obtain the wrong word recognition result containing a set of potential correct word candidates.
[0035] As a further optional solution of the data verification system for Internet data, the information data comparison rules include:
[0036] The recognition module is used to parse the HTML code and attachment content in the Internet data based on the pre-trained Transformer_FLX recognition and parsing model, and identify the DOM node where the article body is located;
[0037] The cleaning module is used to clean the text according to the DOM node where the article body is located, removing non-text elements, blank characters and stop words;
[0038] The judgment module is used to judge whether the HTML code and attachment content without non-text elements, blank characters and stop words contain erroneous content, sensitive content, prohibited content, confidential content, privacy-related content and self-defined content.
[0039] A computing device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of the above-mentioned data verification method for Internet data when executing the computer program.
[0040] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any one of the above-mentioned data verification methods for Internet data.
[0041] The beneficial effects of the present invention are as follows: by constructing a data comparison library, rapid comparison and verification of data can be achieved. Meanwhile, users can also customize new comparison library contents according to actual needs to meet verification requirements in specific fields; by constructing information data comparison rules, in-depth analysis and comparison of Internet data can be performed, and erroneous content, sensitive content, prohibited content, confidential content, privacy-related content and self-defined content in Internet data can be more accurately identified; by constructing URL comparison rules, the validity, security and reliability of URL addresses can be checked in real time to ensure the reliability of data sources. Meanwhile, for URL addresses that can be accessed normally, the content on the page can be further analyzed to determine whether there is abnormality or sensitive information; by constructing update comparison rules, rapid identification of newly added posting data under the target address can be achieved. By comparing the differences between new and old data, newly added data content can be discovered and processed in time to ensure the real-time and accuracy of the data; in summary, the present invention realizes comprehensive, efficient and accurate verification of Internet data by adopting a variety of technical means and strategies. The method can not only improve the quality and reliability of data, but also reduce the cost and time of data verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic diagram of a flow chart of a data verification method for Internet data according to the present invention;
[0044] Figure 2 The present invention is a schematic diagram of the composition of a data verification system for Internet data. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] refer to Figure 1-2 , a data verification method for Internet data, specifically comprising:
[0047] Building a data comparison library, which is used to quickly compare and verify text on Internet data;
[0048] Constructing information data comparison rules, which are used to conduct in-depth analysis and comparison of Internet data;
[0049] Constructing URL comparison rules, wherein the URL comparison rules are used to check the security of Internet data URL addresses in real time;
[0050] Constructing update comparison rules, which are used to quickly identify newly-posted data under the target address;
[0051] The real-time Internet data is verified according to the data comparison library, information data comparison rules, URL comparison rules and update comparison rules, thereby realizing data verification of Internet data.
[0052] In this embodiment, by constructing a data comparison library, rapid comparison and verification of data can be achieved. At the same time, users can also customize new comparison library content according to actual needs to meet the verification needs of specific fields; by constructing information data comparison rules, Internet data can be deeply analyzed and compared, and erroneous content, sensitive content, prohibited content, confidential content, privacy-related content and self-defined content in Internet data can be more accurately identified; by constructing URL comparison rules, the validity, security and reliability of URL addresses can be checked in real time to ensure the reliability of data sources. At the same time, for URL addresses that can be accessed normally, the content on the page can be further analyzed to determine whether there is abnormal or sensitive information; by constructing update comparison rules, new posting data under the target address can be quickly identified. By comparing the differences between new and old data, new data content can be discovered and processed in time to ensure the real-time and accuracy of data; in summary, the present invention realizes comprehensive, efficient and accurate verification of Internet data by adopting a variety of technical means and strategies. This method can not only improve the quality and reliability of data, but also reduce the cost and time of data verification.
[0053] Preferably, the data comparison library performs rapid text comparison and verification on Internet data, specifically including:
[0054] Perform text preprocessing on Internet data, including word segmentation, stop word removal, and stemming;
[0055] Perform feature extraction on Internet data after text preprocessing, including extracting features of each word and its context;
[0056] The features of each word and its context are input into the preset model for prediction, and the wrong word recognition result containing a set of potential correct word candidates is obtained.
[0057] Preferably, the input preset model generates a set of potential correct word candidates for incorrect vocabulary using the following formula:
[0058]
[0059] Among them, W e It is a wrong word, W c is the correct word candidate, C is the context information of the wrong word, P(W c |W e ,C) is the candidate word W under the given wrong word and its context c The probability of being the correct word.
[0060] In this embodiment, during the text preprocessing process, by dividing the text into meaningful lexical units, the meaning of the text can be understood more accurately, laying a foundation for subsequent text analysis and processing. Stop words (such as "de", "shi", etc.) frequently appear in the text but often carry little information. Removing them can reduce data redundancy and improve the efficiency of subsequent processing. Restoring the vocabulary to its basic form (stem) can reduce the data diversity brought about by lexical morphological changes (such as tenses, plurals, etc.), further simplifying data processing. By inputting the data after preprocessing and feature extraction into a preset model for prediction, a misspelling recognition result containing a set of potential correct word candidates can be obtained. This method can effectively identify and correct the misspelled words in the text, improving the quality of the text.
[0061] Preferably, the information data comparison rule conducts in-depth analysis and comparison of Internet data. The information data comparison rule conducts in-depth analysis and comparison of Internet data, specifically including:
[0062] Based on the pre-trained Transformer_FLX recognition and parsing model, parse the HTML code and attachment content in the Internet data, and identify the DOM node where the article body is located;
[0063] Perform text cleaning based on the DOM node where the article body is located, removing non-text elements, whitespace characters, and stop words;
[0064] Judge whether there are error content, sensitive content, prohibited content, classified content, privacy-related content, and self-defined meaning content in the HTML code and attachment content after removing non-text elements, whitespace characters, and stop words.
[0065] In this embodiment, the Transformer_FLX model is used. This model may possess powerful capabilities in deep learning and natural language processing, and can accurately parse the HTML code and identify the DOM node where the article body is located, which greatly improves the accuracy of extracting useful information from complex Internet data. By performing text cleaning on the DOM node where the article body is located, removing non-text elements, whitespace characters, and stop words, the interference of irrelevant information can be effectively reduced, making the subsequent content analysis more focused and effective. Judging whether there are error content, sensitive content, prohibited content, classified content, privacy-related content, and self-defined meaning content in the cleaned HTML code and attachment content can ensure the compliance and security of the information. When users browse the web or use related applications, they can obtain more accurate and valuable information, thus enhancing the user experience.
[0066] Preferably, the URL comparison rule checks the security of the Internet data URL address in real time, specifically including:
[0067] The Transformer-based pre-trained Transformer_FLX recognition and parsing model is used to parse the address links contained in the HTML code, and whether they are invalid addresses is determined by requesting the return status code. For addresses that can be accessed normally, machine learning OCR or the CNN-based VGG algorithm is used to analyze the text, pictures, videos and other multimedia elements on the page to determine whether they are abnormal addresses.
[0068] In this embodiment, the Transformer_FLX model is used to accurately parse the address links in the HTML code, which can ensure that all possible links are captured. By sending an HTTP request and checking the returned status code, it is possible to accurately determine whether the link is valid, that is, whether it can be successfully accessed. For addresses that can be accessed normally, further analysis of the text, pictures, videos and other content on the page can determine whether there are anomalies, such as malware, viruses, phishing websites, etc., which helps protect users from potential network threats.
[0069] A data verification system for Internet data, comprising:
[0070] A first construction module is used to construct a data comparison library, wherein the data comparison library is used to perform rapid text comparison and verification on Internet data;
[0071] The second construction module is used to construct information data comparison rules, and the information data comparison rules are used to perform in-depth analysis and comparison of Internet data;
[0072] The third construction module is used to construct a URL comparison rule, wherein the URL comparison rule is used to check the security of the URL address of Internet data in real time;
[0073] A fourth construction module is used to construct an update comparison rule, wherein the update comparison rule is used to quickly identify newly-posted data under the target address;
[0074] The verification module is used to verify the real-time Internet data according to the data comparison library, information data comparison rules, URL comparison rules and update comparison rules, so as to realize data verification of Internet data.
[0075] Preferably, the data comparison library includes:
[0076] The text preprocessing module is used to perform text preprocessing on Internet data, including word segmentation, stop word removal and stem extraction;
[0077] A feature extraction module is used to extract features from Internet data after text preprocessing, including extracting features of each word and its context;
[0078] The prediction module is used to input the features of each word and its context into a preset model for prediction, and obtain the wrong word recognition result containing a set of potential correct word candidates.
[0079] Preferably, the information data comparison rules include:
[0080] The recognition module is used to parse the HTML code and attachment content in the Internet data based on the pre-trained Transformer_FLX recognition and parsing model, and identify the DOM node where the article body is located;
[0081] The cleaning module is used to clean the text according to the DOM node where the article body is located, removing non-text elements, blank characters and stop words;
[0082] The judgment module is used to judge whether the HTML code and attachment content after removing non-text elements, blank characters and stop words contain erroneous content, sensitive content, prohibited content, confidential content, privacy-related content and self-defined content.
[0083] A computing device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of the above-mentioned data verification method for Internet data when executing the computer program.
[0084] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any one of the above-mentioned data verification methods for Internet data.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data verification method for Internet data, characterized in that: Specifically include: Building a data comparison library, which is used to quickly compare and verify text on Internet data; Constructing information data comparison rules, which are used to conduct in-depth analysis and comparison of Internet data; Constructing URL comparison rules, wherein the URL comparison rules are used to check the security of Internet data URL addresses in real time; Constructing update comparison rules, which are used to quickly identify newly-posted data under the target address; The real-time Internet data is verified according to the data comparison library, information data comparison rules, URL comparison rules and update comparison rules, thereby realizing data verification of Internet data.
2. A data verification method for Internet data according to claim 1, characterized in that: The data comparison library performs rapid text comparison and verification on Internet data, specifically including: Perform text preprocessing on Internet data, including word segmentation, stop word removal, and stemming; Perform feature extraction on Internet data after text preprocessing, including extracting features of each word and its context; The features of each word and its context are input into the preset model for prediction, and the wrong word recognition result containing a set of potential correct word candidates is obtained.
3. A data verification method for Internet data according to claim 2, characterized in that: The input preset model generates a set of potential correct word candidates for the wrong vocabulary using the following formula: Among them, W e It is a wrong word, W c is the correct word candidate, C is the context information of the wrong word, P(W c |W e ,C) is the candidate word W under the given wrong word and its context c The probability of being the correct word.
4. A data verification method for Internet data according to claim 3, characterized in that: The information data comparison rules conduct in-depth analysis and comparison of Internet data, specifically including: Based on the pre-trained Transformer_FLX recognition and parsing model, parse the HTML code and attachment content in the Internet data and identify the DOM node where the article body is located; Perform text cleaning based on the DOM node where the article body is located, removing non-text elements, blank characters and stop words; The HTML code and attachment content that remove non-text elements, whitespace characters, and stop words are judged for erroneous content, sensitive content, prohibited content, confidential content, privacy-related content, and content with self-defined meaning.
5. A data verification method for Internet data according to claim 4, characterized in that: The URL comparison rules check the security of the URL address of Internet data in real time, specifically including: Based on the pre-trained Transformer_FLX recognition and parsing model, the address link contained in the HTML code is parsed, and the returned status code is returned to determine whether it is an invalid address. For the address that can be accessed normally, the text, pictures and videos on the page are analyzed to determine whether they are abnormal addresses.
6. A data verification system for Internet data, characterized in that: include: A first construction module is used to construct a data comparison library, wherein the data comparison library is used to perform rapid text comparison and verification on Internet data; The second construction module is used to construct information data comparison rules, and the information data comparison rules are used to perform in-depth analysis and comparison of Internet data; The third construction module is used to construct a URL comparison rule, wherein the URL comparison rule is used to check the security of the URL address of Internet data in real time; A fourth construction module is used to construct an update comparison rule, wherein the update comparison rule is used to quickly identify newly-posted data under the target address; The verification module is used to verify the real-time Internet data according to the data comparison library, information data comparison rules, URL comparison rules and update comparison rules, so as to realize data verification of Internet data.
7. A data verification system for Internet data according to claim 6, characterized in that: The data comparison library includes: The text preprocessing module is used to perform text preprocessing on Internet data, including word segmentation, stop word removal and stem extraction; A feature extraction module is used to extract features from Internet data after text preprocessing, including extracting features of each word and its context; The prediction module is used to input the features of each word and its context into a preset model for prediction, and obtain the wrong word recognition result containing a set of potential correct word candidates.
8. A data verification system for Internet data according to claim 7, characterized in that: The information data comparison rules include: The recognition module is used to parse the HTML code and attachment content in the Internet data based on the pre-trained Transformer_FLX recognition and parsing model, and identify the DOM node where the article body is located; The cleaning module is used to clean the text according to the DOM node where the article body is located, removing non-text elements, blank characters and stop words; The judgment module is used to judge whether the HTML code and attachment content after removing non-text elements, blank characters and stop words contain erroneous content, sensitive content, prohibited content, confidential content, privacy-related content and self-defined content.
9. A computing device, characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of claims 1 to 5 of the data verification method for Internet data when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any one of the data verification methods for Internet data in claims 1-5.
