A data collection and analysis method and system based on big data analysis
Through automated data source identification and classification, using the BERT model to extract keywords and constructing semantic association graphs, combined with social network analysis, it solves the problem of traditional methods being difficult to meet the real-time and accuracy of large-scale unstructured data, and achieves efficient data Collection and analysis help companies optimize products and services.
Patent Information
- Application Number
- CN202410791608.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Traditional data collection and analysis methods cannot meet the real-time and accuracy requirements of large-scale unstructured data, resulting in high-tech enterprises being unable to optimize products and services in a timely manner.
It adopts automated data source identification and classification, uses the pre-trained BERT model to build a text classification model, extracts keywords and constructs a semantic association graph, and combines social network analysis to optimize data collection tags and user behavior patterns to achieve real-time data collection and analysis.
It improves the efficiency and accuracy of extracting and analyzing scientific and technological information from big data, helps enterprises better understand market demand and technological trends, and optimize products and services.
Smart Images

Figure CN118364114B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of big data analysis, and in particular to a data collection and analysis method and system based on big data analysis. Background Art
[0002] With the rapid advancement of global informatization, the application of big data technology in all walks of life has become a key factor in driving innovation and decision-making. With the development of the Internet and Internet of Things technologies, data sources are increasing and the amount of data is growing explosively, especially real-time data from social media and online platforms, which contains rich market and consumer behavior information. It is of great value for high-tech enterprises to understand market dynamics and grasp consumption trends. However, traditional data collection and analysis methods are often unable to efficiently process such large and complex data sets, especially when it is necessary to extract useful information from large-scale unstructured data. Conventional methods are difficult to meet the dual requirements of real-time and accuracy. High-tech enterprises cannot obtain the technical requirements required by the market in real time and cannot optimize products and services in a timely manner. Summary of the invention
[0003] In view of the problems existing in the above-mentioned existing data collection and analysis methods and systems based on big data analysis, the present invention is proposed.
[0004] Therefore, the problem to be solved by the present invention is that conventional methods are difficult to meet the dual requirements of real-time performance and accuracy, and high-tech enterprises are unable to obtain the technical requirements required by the market in real time and cannot optimize products and services in a timely manner.
[0005] To solve the above technical problems, the present invention provides the following technical solutions: a data collection and analysis method based on big data analysis, which includes: automatic data source identification and classification, setting data collection labels according to the classification results, collecting data according to the data collection labels and preprocessing the collected data; extracting keywords from the preprocessed data and constructing a semantic association graph based on the extracted keywords; performing social network analysis based on the semantic association graph and formulating response measures.
[0006] As a preferred solution of the data collection and analysis method based on big data analysis described in the present invention, wherein: the automatic data source identification and classification refers to setting articles containing technology products, technology companies, scientific research results, new technology applications and IT news as technology-related articles, collecting technology-related articles and posts and non-technology-related conventional news and content from websites, annotating the collected text data, classifying the data into technology and non-technology, and cleaning and filtering the data to form a training set;
[0007] Use the pre-trained BERT model to build a text classification model, set the model learning rate to between 2e-5 and 5e-5, and the batch size to 16;
[0008] Use the training set to input the text classification model for iterative training, define the loss function and Adam optimizer to iteratively optimize the model parameters. When the loss of the text classification model no longer decreases significantly during the continuous iteration process, stop iterating and output the model parameters to update the text classification model.
[0009] The text classification model is deployed at the data source receiving point to automatically identify the data source and classify it into scientific and technological data sources and non-scientific and technological data sources. The BERT model is used to continue to divide the data in the scientific and technological data source, and the scientific and technological data source is refined into different scientific and technological sub-fields.
[0010] As a preferred solution of the data collection and analysis method based on big data analysis described in the present invention, wherein: the setting of data collection labels according to classification results refers to deriving classification results from the deployed text classification model, identifying technology sub-field labels, using Python's pandas library to count the classification results, grouping and counting the data, and calculating the frequency of occurrence of each sub-field in the model output :
[0011] ,
[0012] In the formula, is the number of occurrences of subdomain h, and H is the total number of all classification results;
[0013] Generate a frequency table of each sub-field based on the calculation results of the frequency of occurrence, identify the sub-field with the highest frequency of occurrence, and generate preliminary classification results;
[0014] Obtain market trend data and search popularity data for each sub-field and set the time range to the past 12 months. Combine the acquired data with the sub-field frequency table, supplement the preliminary classification results, and calculate the trend index for each sub-field. :
[0015] ,
[0016] In the formula, is the frequency of occurrence of the subdomain in the model output, is the search popularity index of this sub-field, and is the weight parameter;
[0017] Obtain real-time and historical user behavior data and pre-process the user behavior data, perform cluster analysis on the user behavior data using K-means clustering, and build a user context model;
[0018] Use the preprocessed historical user behavior data to train the user context model, and use the silhouette coefficient to verify the clustering effect of the model:
[0019] ,
[0020] Where L is the silhouette coefficient, b is the average distance from the data point to the nearest cluster, and a is the average distance from the data point to other points in its cluster;
[0021] Iteratively optimize the model parameters. When the silhouette coefficient value reaches 0.5 during the continuous iteration process, stop iterating and output the model parameters to update the user context model.
[0022] Input the real-time user behavior data into the user context model to divide users into different context groups and obtain the feature description of each context group, and identify the user behavior patterns in different contexts;
[0023] Combined with the user behavior pattern, high-frequency user interest points are identified based on the high-frequency access data points in the user behavior and the high-frequency user interest points are set as user interest point labels, and the labels of the sub-fields are adjusted according to the user interest point labels;
[0024] The preliminary classification results are optimized and adjusted according to the adjusted sub-field labels and sub-field trend indexes to generate an optimized collection label list.
[0025] As a preferred solution of the data collection and analysis method based on big data analysis described in the present invention, wherein: the data collection according to the data collection tag and the preprocessing of the collected data refer to using the Scrapy framework to configure the crawler, creating a new Scrapy project in the working directory, creating a new crawler in the project directory, and defining the crawling logic and parsing method of the crawler;
[0026] According to the set collection tags, list the URLs of all target technology news websites, use the browser's developer tools to check the target pages, find the XPath selectors of the news article's title, content, and release date information, define the use of the selectors to extract news data in the crawler script, deploy the crawler on the server, set up scheduled tasks, and use the crawler to automatically check technology news websites to capture newly released content;
[0027] Clean and standardize the data collected in real time, decompose continuous text strings into independent words and remove stop words in the text, use lemma restoration tools to restore the vocabulary to its basic form and store the pre-processed data in the central database.
[0028] As a preferred solution of the data collection and analysis method based on big data analysis described in the present invention, wherein: the extraction of keywords from the preprocessed data refers to using Apache Flink to perform real-time TF-IDF calculation on the streaming data to calculate the frequency of occurrence TE(t,d) of each word in the technology-related documents captured in real time:
[0029] ,
[0030] In the formula, is the number of occurrences of term p in document d, is the number of times each distinct term k appears in document d;
[0031] Update the IDF value based on the entire document:
[0032] ,
[0033] Where IDF(p) is the inverse document frequency value of term p. is the number of documents containing term p, and M is the total number of documents in the document set;
[0034] For each new document, calculate and update the TF-IDF score of each word, select the word with the highest score as the keyword, sort the keywords by score based on the calculated TF-IDF score, and extract the keyword with the highest score from each document;
[0035] The extracted keywords and their contexts are tagged, metadata of each keyword is associated, and metadata tags are created for each record.
[0036] As a preferred solution of the data collection and analysis method based on big data analysis described in the present invention, wherein: the construction of a semantic association graph based on the extracted keywords refers to defining the relationship between nodes based on the co-occurrence of keywords in the text based on the keywords extracted from science and technology related articles, importing the keywords and the relationship between the keywords into Neo4j, taking each keyword as a node and assigning attributes to the node, and constructing a semantic association graph using the co-occurrence relationship as an edge.
[0037] As a preferred solution of the data collection and analysis method based on big data analysis described in the present invention, wherein: the social network analysis based on the semantic association graph and the formulation of response measures refer to using the key technical terms in the semantic association graph as screening conditions, and using the social media monitoring tool Brandwatch to monitor and collect relevant data on social media;
[0038] Use NodeXL to build a social network, treating each social media post and user account as a node and establishing edges based on the interactions between users;
[0039] Identify nodes that play a core role in the spread of technical topics and calculate the degree centrality of nodes in the network and betweenness centrality :
[0040] ,
[0041] Where N is the total number of nodes in the network, is the number of direct connections of node v;
[0042] ,
[0043] In the formula, is the number of paths from node s to node t that pass through node v, is the number of shortest paths from node s to node t, where s, v and t are nodes in the network;
[0044] Sort high values of degree centrality and betweenness centrality in descending order, identify key influencers and key posts based on high values of degree centrality and betweenness centrality, collect and summarize key data from social network analysis, evaluate the intensity of market demand for different technologies based on the intensity of discussion of technology topics by users in social networks, prioritize potential technology development projects based on market demand and technology trends, select technology projects based on the company's own R&D strength, and develop a detailed development roadmap for the selected technology projects.
[0045] Another object of the present invention is to provide a data collection and analysis system based on big data analysis, which comprises:
[0046] The data source identification module is used to identify and classify text data using the pre-trained BERT model to distinguish between technology and non-technology related content;
[0047] The data collection module is used to set data collection labels according to the recognition and classification results, regularly crawl target science and technology news websites and post information, and pre-process the collected data;
[0048] The keyword extraction module is used to extract keywords from the preprocessed text data and construct a semantic association graph based on the co-occurrence of keywords;
[0049] The social network analysis module is used to collect social media data related to key technical terms in the semantic association graph and build a social network based on this data, identify and analyze hot nodes, and based on the analysis results, evaluate the market demand and search popularity of different technology sub-fields to provide directions for technology development.
[0050] A computer device comprises: a memory and a processor; the memory stores a computer program, and the processor implements the steps of a data collection and analysis method based on big data analysis when executing the computer program.
[0051] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a data collection and analysis method based on big data analysis.
[0052] The beneficial effects of the present invention are as follows: the present invention performs data collection and preprocessing by automatically identifying and classifying data sources and setting data collection tags, constructs a semantic association graph by extracting keywords, and performs social network analysis based on the semantic association graph, thereby quickly collecting required data, improving the efficiency and accuracy of extracting and analyzing scientific and technological information from big data, and deeply analyzing the technological trends that users are concerned about, so that enterprises can better understand market demand and technological trends, and thus optimize products and services. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0054] Figure 1 The figure is a flowchart of the data collection and analysis method based on big data analysis.
[0055] Figure 2 Schematic diagram of the implementation of data collection and preprocessing of the data collection and analysis method based on big data analysis.
[0056] Figure 3 This is a structural diagram of the data acquisition and analysis system based on big data analysis. DETAILED DESCRIPTION
[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0058] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0059] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0060] Example 1: Reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, and which provides a data collection and analysis method based on big data analysis. The data collection and analysis method based on big data analysis includes:
[0061] S1. Automatically identify and classify data sources, set data collection labels according to the classification results, collect data according to the data collection labels, and pre-process the collected data;
[0062] Specifically, automatic data source identification and classification refers to setting articles containing technology products, technology companies, scientific research results, new technology applications and IT news as technology-related articles, collecting technology-related articles and posts and non-technology-related regular news and content from websites, annotating the collected text data, classifying the data into technology and non-technology, and cleaning and filtering the data to form a training set;
[0063] Use the pre-trained BERT model to build a text classification model, set the model learning rate to between 2e-5 and 5e-5, and the batch size to 16;
[0064] Use the training set to input the text classification model for iterative training, define the loss function and Adam optimizer to iteratively optimize the model parameters. When the loss of the text classification model no longer decreases significantly during the continuous iteration process, stop iterating and output the model parameters to update the text classification model.
[0065] The text classification model is deployed at the data source receiving point to automatically identify the data source and classify it into scientific and technological data sources and non-scientific and technological data sources. The BERT model is used to continue to divide the data in the scientific and technological data source, and the scientific and technological data source is refined into different scientific and technological sub-fields.
[0066] By using the pre-trained BERT model to build a text classification model, we can intelligently identify technology-related content, such as technology products, scientific research results, and IT news, greatly improving the relevance and accuracy of data collection. Automatic classification reduces the workload that requires manual intervention and improves the efficiency of the overall data processing process. The Adam optimizer and loss function are used to continuously optimize the text classification model, so that the model can more accurately identify and classify complex data patterns. Deploying the trained model to the data source receiving point can automatically identify and classify new data sources in real time. This is especially important for application scenarios that require real-time processing and analysis, such as real-time news updates and technology trend monitoring. Automated real-time data classification not only speeds up data processing, but also enhances the timeliness and accuracy of data-driven decision-making.
[0067] Furthermore, setting data collection labels based on classification results means exporting classification results from the deployed text classification model, identifying technology sub-field labels, and using Python's pandas library to count the classification results, group and count the data, and calculate the frequency of each sub-field in the model output. :
[0068] ,
[0069] In the formula, is the number of occurrences of subdomain h, and H is the total number of all classification results;
[0070] Generate a frequency table of each sub-field based on the calculation results of the frequency of occurrence, identify the sub-field with the highest frequency of occurrence, and generate preliminary classification results;
[0071] Obtain market trend data and search popularity data for each sub-field and set the time range to the past 12 months. Combine the acquired data with the sub-field frequency table, supplement the preliminary classification results, and calculate the trend index for each sub-field. :
[0072] ,
[0073] In the formula, is the frequency of occurrence of the subdomain in the model output, is the search popularity index of this sub-field, and is a weight parameter, the value range is [0, 1], and ;
[0074] Obtain real-time and historical user behavior data and pre-process the user behavior data, perform cluster analysis on the user behavior data using K-means clustering, and build a user context model;
[0075] Use the preprocessed historical user behavior data to train the user context model, and use the silhouette coefficient to verify the clustering effect of the model:
[0076] ,
[0077] Where L is the silhouette coefficient, b is the average distance from the data point to the nearest cluster, a is the average distance from the data point to other points in its cluster, and max(a,b) is used to normalize the score to ensure that the score is in the range [-1,1];
[0078] Iteratively optimize the model parameters. When the silhouette coefficient value reaches 0.5 during the continuous iteration process, stop iterating and output the model parameters to update the user context model.
[0079] Input real-time user behavior data into the user context model to divide users into different context groups and obtain feature descriptions of each context group, including access frequency and typical behavior patterns, to identify user behavior patterns in different contexts;
[0080] Combined with the user behavior pattern, high-frequency user interest points are identified based on the high-frequency access data points in the user behavior and the high-frequency user interest points are set as user interest point labels, and the labels of the sub-fields are adjusted according to the user interest point labels;
[0081] The preliminary classification results are optimized and adjusted according to the adjusted sub-field labels and sub-field trend indexes to generate an optimized collection label list.
[0082] Pandas is a Python data analysis tool library, commonly used for tasks such as data preprocessing, data cleaning and data analysis. It helps optimize data processing resources and improve data analysis efficiency by accurately counting the frequency of occurrence of various technological sub-fields and ensuring the pertinence and accuracy of data collection. It combines market trends and search popularity to generate a trend index that can reflect the current market attention of each sub-field, guide companies to focus on the most promising and in-demand technology fields, identify different user scenarios through cluster analysis, and the model can accurately describe the user's typical behavior patterns and access frequency, which is helpful for the company's technology development and services.
[0083] Furthermore, collecting data according to data collection tags and preprocessing the collected data means using the Scrapy framework to configure the crawler, creating a new Scrapy project in the working directory, creating a new crawler in the project directory, and defining the crawler's crawling logic and parsing method;
[0084] According to the set collection tags, list the URLs of all target technology news websites, use the browser's developer tools to check the target pages, find the XPath selectors of the news article's title, content, and release date information, define the use of the selectors to extract news data in the crawler script, deploy the crawler on the server, set up scheduled tasks, and use the crawler to automatically check technology news websites to capture newly released content;
[0085] Clean and standardize the data collected in real time, decompose continuous text strings into independent words and remove stop words in the text, use lemma restoration tools to restore the vocabulary to its basic form and store the pre-processed data in the central database.
[0086] Scrapy is an open source and collaborative web crawler framework for extracting website data. It automatically collects data on websites by defining crawler crawling logic and parsing methods. Developer tools are a set of tools built into browsers for web page development and debugging. Common browsers such as Chrome and Firefox provide powerful developer tools that can help developers check the HTML structure, CSS style, and JavaScript code of web pages, and perform real-time debugging and performance analysis. XPath (XML Path Language) selector is a language for finding information in XML documents. It can select nodes or node sets through path expressions and is a powerful tool for extracting HTML and XML data. Lemmatization tool is a natural language processing tool for restoring vocabulary to its basic form (lemma). In this embodiment, it is preferably lemmatizer in paCy.
[0087] The asynchronous processing mechanism of the Scrapy framework significantly improves the speed of data collection, allowing large amounts of data to be effectively collected in a short period of time. By customizing the XPath selector, the required data fields, such as news titles, content, and publication dates, can be accurately captured to ensure the accuracy and relevance of the data. Setting scheduled tasks to automatically check and update ensures the timeliness of information, allowing the latest science and technology news to be captured and processed in a timely manner, removing useless formats and impurities such as HTML tags, special characters, and stop words to ensure the quality of data for subsequent analysis. Standardization processing includes unifying text formats to keep data consistent for easy comparison and analysis. By restoring vocabulary to its basic form, it reduces information redundancy and improves the efficiency of text processing, which is particularly important for building an effective keyword index and conducting semantic analysis.
[0088] S2, extracting keywords from the preprocessed data and constructing a semantic association graph based on the extracted keywords;
[0089] Specifically, extracting keywords from preprocessed data means using Apache Flink to perform real-time TF-IDF calculations on streaming data to calculate the frequency of occurrence of each word TE(t,d) in real-time captured technology-related documents:
[0090] ,
[0091] In the formula, is the number of occurrences of term p in document d, is the number of times each distinct term k appears in document d;
[0092] Update the IDF value based on the entire document:
[0093] ,
[0094] Where IDF(p) is the inverse document frequency value of term p. is the number of documents containing term p, and M is the total number of documents in the document set;
[0095] For each new document, calculate and update the TF-IDF score of each word, select the word with the highest score as the keyword, sort the keywords by score based on the calculated TF-IDF score, and extract the keyword with the highest score from each document;
[0096] The extracted keywords and their context are tagged, and metadata of each keyword, including document title, publication date, and source link, is associated to create metadata tags for each record.
[0097] Apache Flink is an open source stream processing framework for processing bounded and unbounded data streams. TF-IDF is a commonly used weighted technology for information retrieval and text mining. Using Flink for real-time TF-IDF calculations can immediately process newly entered document data and update the TF-IDF score of each word in real time. It is very useful for rapidly changing data environments, such as online news releases and social media streams, so that the latest information can be captured and analyzed instantly. By calculating the TF-IDF score, the highest-scoring keywords can be dynamically extracted from each document, which not only improves the accuracy of keyword extraction, but also ensures that the extracted keywords can truly reflect the core content of the document. The ability to capture the latest keywords and concepts in a timely manner is of great significance to research and development. The extracted keywords and their context are further labeled and associated with metadata for each keyword, such as document title, publication date, and source link, which enhances the traceability of the data and the integrity of auxiliary information, facilitates subsequent in-depth analysis and data mining, and creates metadata tags for each record to make data management more orderly and facilitate subsequent data retrieval and indexing.
[0098] Furthermore, constructing a semantic association graph based on the extracted keywords means defining the relationship between nodes based on the keywords extracted from science and technology related articles through the co-occurrence of the keywords in the text, importing the keywords and the relationship between the keywords into Neo4j, treating each keyword as a node and assigning attributes to the node, including word frequency, document frequency and TF-IDF value, and constructing a semantic association graph using the co-occurrence relationship as an edge.
[0099] Neo4j is a high-performance graph database designed for processing complex relational data. By automatically analyzing text data in scientific articles, the system can effectively extract keywords, which not only improves the efficiency of information processing, but also ensures that core concepts can be quickly and accurately extracted from large amounts of text, laying the foundation for subsequent in-depth analysis. By defining the co-occurrence relationship between keywords to construct a semantic association graph, the intrinsic connection between different concepts can be revealed, which not only enhances the understanding of the content of scientific articles, but also helps researchers and decision makers capture trends and patterns in scientific and technological development. Using the Neo4j graph database to manage semantic association graphs allows users to flexibly explore the relationship between data, thereby gaining insight into potential scientific and technological innovations and market needs, so that data analysis is no longer limited to surface data processing, but can go deep into the semantic level of data.
[0100] S3, conduct social network analysis based on semantic association graph and formulate response measures;
[0101] Specifically, conducting social network analysis based on semantic association graphs and formulating response measures means using key technical terms in the semantic association graph as screening conditions and using the social media monitoring tool Brandwatch to monitor and collect relevant data on social media;
[0102] Use NodeXL to build a social network, treating each social media post and user account as a node, and establishing edges based on the interactions between users including replies, forwarding, and sharing;
[0103] Identify nodes that play a core role in the spread of technical topics and calculate the degree centrality of nodes in the network and betweenness centrality :
[0104] ,
[0105] Where N is the total number of nodes in the network, is the number of direct connections of node v;
[0106] ,
[0107] In the formula, is the number of paths from node s to node t that pass through node v, , is the number of shortest paths from node s to node t, s, v and t are nodes in the network;
[0108] Sort high values of degree centrality and betweenness centrality in descending order, identify key influencers and key posts based on high values of degree centrality and betweenness centrality, collect and summarize key data from social network analysis, evaluate the intensity of market demand for different technologies based on the intensity of discussion of technology topics by users in social networks, prioritize potential technology development projects based on market demand and technology trends, select technology projects based on the company's own R&D strength, and develop a detailed development roadmap for the selected technology projects.
[0109] Brandwatch is a social media monitoring tool that provides real-time data monitoring, collection and analysis functions. NodeXL is a social network analysis software that allows users to analyze network data through an interactive visual interface. Through the semantic association graph, the present invention can carefully map the propagation path of scientific and technological topics on social networks, thereby identifying nodes and connections with great influence. Real-time monitoring of social media brings the ability to respond quickly to market changes. Enterprises can capture changes in consumer sentiment and emerging trends in a timely manner. By calculating the degree centrality and betweenness centrality of nodes, enterprises can identify individuals or posts that play a key bridging role in social networks. Based on the intensity of user discussion on scientific and technological topics, it provides accurate market demand assessment and helps enterprises make data-driven decisions. It sorts high values of degree centrality and betweenness centrality in descending order, prioritizes potential technology development projects according to market demand and technological trends, and formulates a detailed development roadmap to ensure efficient allocation of R&D resources.
[0110] Example 2: Reference Figure 3 , which is the second embodiment of the present invention, and which is different from the previous embodiment, provides a data collection and analysis system based on big data analysis, which includes:
[0111] The data source identification module is used to identify and classify text data using the pre-trained BERT model to distinguish between technology and non-technology related content;
[0112] The data collection module is used to set data collection labels according to the recognition and classification results, regularly crawl target science and technology news websites and post information, and pre-process the collected data;
[0113] The keyword extraction module is used to extract keywords from the preprocessed text data and construct a semantic association graph based on the co-occurrence of keywords;
[0114] The social network analysis module is used to collect social media data related to key technical terms in the semantic association graph and build a social network based on this data, identify and analyze hot nodes, and based on the analysis results, evaluate the market demand and search popularity of different technology sub-fields to provide directions for technology development.
[0115] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0116] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0117] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0118] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit with a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit with a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
Claims
1. A data collection and analysis method based on big data analysis, characterized in that: include, Perform automatic data source identification and classification, set data collection labels according to the classification results, collect data according to the data collection labels and pre-process the collected data; Extract keywords from the preprocessed data and construct a semantic association graph based on the extracted keywords; Conduct social network analysis based on semantic association graphs and formulate response measures; The automated data source identification and classification refers to setting articles containing technology products, technology companies, scientific research results, new technology applications and IT news as technology-related articles, collecting technology-related articles and posts and non-technology-related conventional news and content from websites, annotating the collected text data, classifying the data into technology and non-technology, and cleaning and filtering the data to form a training set; Use the pre-trained BERT model to build a text classification model, set the model learning rate to between 2e-5 and 5e-5, and the batch size to 16; Use the training set to input the text classification model for iterative training, define the loss function and Adam optimizer to iteratively optimize the model parameters. When the loss of the text classification model no longer decreases significantly during the continuous iteration process, stop iterating and output the model parameters to update the text classification model. Deploy the text classification model at the data source receiving point to automatically identify the data source and classify it into scientific and technological data sources and non-scientific and technological data sources, and use the BERT model to continue to divide the data in the scientific and technological data sources, and refine the scientific and technological data sources into different scientific and technological sub-fields; Extracting keywords from preprocessed data refers to using Apache Flink to perform real-time TF-IDF calculations on streaming data to calculate the frequency of occurrence TE(t,d) of each word in the technology-related documents captured in real time: , In the formula, is the number of occurrences of term p in document d, is the number of times each distinct term k appears in document d; Update the IDF value based on the entire document: , Where IDF(p) is the inverse document frequency value of term p. is the number of documents containing term p, and M is the total number of documents in the document set; For each new document, calculate and update the TF-IDF score of each word, select the word with the highest score as the keyword, sort the keywords by score based on the calculated TF-IDF score, and extract the keyword with the highest score from each document; Tag the extracted keywords and their context, associate metadata with each keyword, and create metadata tags for each record; The said constructing a semantic association graph according to the extracted keywords refers to defining the relationship between nodes according to the co-occurrence of the keywords in the text according to the keywords extracted from the science and technology related articles, importing the keywords and the relationship between the keywords into Neo4j, taking each keyword as a node and assigning attributes to the node, and constructing a semantic association graph with the co-occurrence relationship as an edge; The social network analysis based on the semantic association graph and the formulation of response measures refers to using the key technical terms in the semantic association graph as screening conditions and using the social media monitoring tool Brandwatch to monitor and collect relevant data on social media; Use NodeXL to build a social network, treating each social media post and user account as a node and establishing edges based on the interactions between users; Identify nodes that play a core role in the spread of technical topics and calculate the degree centrality of nodes in the network and betweenness centrality : , Where N is the total number of nodes in the network, is the number of direct connections of node v; , In the formula, is the number of paths from node s to node t that pass through node v, is the number of shortest paths from node s to node t, where s, v and t are nodes in the network; Sort high values of degree centrality and betweenness centrality in descending order, identify key influencers and key posts based on high values of degree centrality and betweenness centrality, collect and summarize key data from social network analysis, evaluate the intensity of market demand for different technologies based on the intensity of discussion of technology topics by users in social networks, prioritize potential technology development projects based on market demand and technology trends, select technology projects based on the company's own R&D strength, and develop a detailed development roadmap for the selected technology projects.
2. The data collection and analysis method based on big data analysis according to claim 1, characterized in that: Setting data collection labels based on classification results refers to exporting classification results from the deployed text classification model, identifying technology sub-field labels, using Python's pandas library to count the classification results, group and count the data, and calculate the frequency of each sub-field in the model output. : , In the formula, is the number of occurrences of subdomain h, and H is the total number of all classification results; Generate a frequency table of each sub-field based on the calculation results of the frequency of occurrence, identify the sub-field with the highest frequency of occurrence, and generate preliminary classification results; Obtain market trend data and search popularity data for each sub-field and set the time range to the past 12 months. Combine the acquired data with the sub-field frequency table, supplement the preliminary classification results, and calculate the trend index for each sub-field. : , In the formula, is the frequency of occurrence of the subdomain in the model output, is the search popularity index of this sub-field, and is the weight parameter; Obtain real-time and historical user behavior data and pre-process the user behavior data, perform cluster analysis on the user behavior data using K-means clustering, and build a user context model; Use the preprocessed historical user behavior data to train the user context model, and use the silhouette coefficient to verify the clustering effect of the model: , Where L is the silhouette coefficient, b is the average distance from the data point to the nearest cluster, and a is the average distance from the data point to other points in its cluster; Iterate and optimize the model parameters. When the silhouette coefficient value reaches 0.5 during the continuous iteration process, stop iterating and output the model parameters to update the user context model. Input the real-time user behavior data into the user context model to divide users into different context groups and obtain the feature description of each context group, and identify the user behavior patterns in different contexts; Combined with the user behavior pattern, high-frequency user interest points are identified based on the high-frequency access data points in the user behavior and the high-frequency user interest points are set as user interest point labels, and the labels of the sub-fields are adjusted according to the user interest point labels; The preliminary classification results are optimized and adjusted according to the adjusted sub-field labels and sub-field trend indexes to generate an optimized collection label list.
3. The data collection and analysis method based on big data analysis according to claim 2, characterized in that: The data collection according to the data collection tag and preprocessing the collected data refers to using the Scrapy framework to configure the crawler, creating a new Scrapy project in the working directory, creating a new crawler in the project directory, and defining the crawling logic and parsing method of the crawler; According to the set collection tags, list the URLs of all target technology news websites, use the browser's developer tools to check the target pages, find the XPath selectors of the news article's title, content, and release date information, define the use of the selectors to extract news data in the crawler script, deploy the crawler on the server, set up scheduled tasks, and use the crawler to automatically check technology news websites to capture newly released content; Clean and standardize the data collected in real time, decompose continuous text strings into independent words and remove stop words in the text, use lemma restoration tools to restore the vocabulary to its basic form and store the pre-processed data in the central database.
4. A data collection and analysis system based on big data analysis based on the data collection and analysis method based on big data analysis according to any one of claims 1 to 3, characterized in that: include, The data source identification module is used to identify and classify text data using the pre-trained BERT model to distinguish between technology and non-technology related content; The data collection module is used to set data collection labels according to the recognition and classification results, regularly crawl target science and technology news websites and post information, and pre-process the collected data; The keyword extraction module is used to extract keywords from the preprocessed text data and construct a semantic association graph based on the co-occurrence of keywords; The social network analysis module is used to collect social media data related to key technical terms in the semantic association graph and build a social network based on this data, identify and analyze hot nodes, and based on the analysis results, evaluate the market demand and search popularity of different technology sub-fields to provide directions for technology development.
5. A computer device comprising: Memory and processor; The memory stores a computer program, characterized in that when the processor executes the computer program, the steps of the data collection and analysis method based on big data analysis described in any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data collection and analysis method based on big data analysis described in any one of claims 1 to 3 are implemented.
