Data analysis system, data analysis method, medium and electronic equipment
By introducing knowledge graph generation, unified retrieval and intelligence analysis modules into the data analysis system, the problem of insufficient data analysis capabilities of the existing system is solved, and efficient analysis of new energy policies and news data is achieved.
Patent Information
- Application Number
- CN202311141037.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-09-05
AI Technical Summary
The existing data analysis system is difficult to quickly obtain and analyze policy and news information during the planning and construction of new energy projects, resulting in insufficient data analysis capabilities.
A data analysis system is designed, including a source data storage module, an external data acquisition module, a knowledge graph generation module, a unified retrieval module, an intelligence analysis module and a statistical analysis module. Through these modules, the knowledge graph is generated, and policy and news data are processed and analyzed. , improve data analysis capabilities.
It has significantly improved the overall data analysis capabilities of the data analysis system, especially in policy data analysis, providing better data analysis results.
Smart Images

Figure CN117093674B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data analysis and relates to a data analysis system, and in particular to a data analysis system, a data analysis method, a medium and an electronic device. Background Art
[0002] Currently, business personnel in the industry need to obtain policy, news and other information in a timely manner during the planning and construction of new energy projects, and need to conduct rapid data analysis on policy, news and other information. The current data analysis system has the problem of poor data analysis capabilities. Summary of the invention
[0003] The purpose of the present application is to provide a data analysis system, a data analysis method, a medium and an electronic device, so as to solve the problem that the current data analysis system has poor data analysis capability.
[0004] In a first aspect, the present application provides a data analysis system, which includes: a source data storage module for storing energy information data, the energy information data including policy data on renewable energy and news data on renewable energy, an external data acquisition module for acquiring energy information data outside the data analysis system, a knowledge graph generation module for generating a knowledge graph of the incoming data based on the incoming data of the knowledge graph generation module, a unified retrieval module for processing input text based on a Chinese word segmenter and an index structure to obtain retrieval data, an intelligence analysis module for processing input time to obtain intelligence data and a knowledge graph based on the intelligence data, the intelligence data including: the policy data within the input time range and / or the news data within the input time range, a statistical analysis module for processing dual carbon project data to obtain statistical analysis results of the dual carbon project data, and a briefing generation module for processing selected text data to generate a briefing.
[0005] According to the above description, the data analysis system can enhance the overall data analysis capability of the system according to the knowledge graph generation module, the unified retrieval module, the intelligence analysis module, the statistical analysis module and other modules, especially the data analysis capability for policy data. The data analysis system has better data analysis capability.
[0006] In one embodiment of the present application, the intelligence analysis module includes a screening unit, a display setting unit, a knowledge recommendation data generation unit, and a sentiment analysis unit. The screening unit is used to screen the intelligence data based on a screening area, a screening field, or a screening time period to obtain the filtered intelligence data. The display setting unit is used to set the release time, label, weight, and keyword of the intelligence data for personalized display. The knowledge recommendation data generation unit is used to generate knowledge recommendation data of the intelligence data based on the intelligence data. The sentiment analysis unit is used to perform sentiment analysis on the intelligence data based on a trained sentiment analysis model to obtain the sentiment tendency of the intelligence data.
[0007] In one embodiment of the present application, the sentiment analysis unit also includes: a pre-training subunit and a fine-tuning subunit, the pre-training subunit is used to train the initialized sentiment analysis model based on unlabeled data and different pre-training tasks to obtain a pre-trained sentiment analysis model, and the fine-tuning subunit is used to fine-tune the pre-trained sentiment analysis model based on label data of downstream tasks to obtain the trained sentiment analysis model.
[0008] In one embodiment of the present application, the statistical analysis module includes a dual-carbon project issuance quantity statistics unit, a dual-carbon project type statistics unit, a dual-carbon project year statistics unit, a dual-carbon project knowledge graph retrieval unit, and a dual-carbon project knowledge graph layout acquisition unit. The dual-carbon project knowledge graph retrieval unit is used to obtain a knowledge graph based on dual-carbon project data associated with the input keyword based on an input keyword; the dual-carbon project knowledge graph layout acquisition unit is used to obtain a dual-carbon project knowledge graph layout corresponding to the selected knowledge graph layout structure based on a selected knowledge graph layout structure; the dual-carbon project issuance quantity statistics unit is used to obtain the issuance quantity of each type of dual-carbon projects in the dual-carbon project data based on the dual-carbon project data; the dual-carbon project type statistics unit is used to obtain the percentage of each type of dual-carbon projects in the dual-carbon project data in the total dual-carbon projects based on the dual-carbon project data; and the dual-carbon project year statistics unit is used to obtain the number of dual-carbon projects in each year in the dual-carbon project data based on the dual-carbon project data.
[0009] In one embodiment of the present application, the data analysis system also includes: a briefing management module, the briefing generation module includes: a text acquisition unit, a briefing generation unit and a briefing upload unit, the text acquisition unit is used to acquire the selected text data based on a text selection operation instruction, the briefing generation unit, the briefing generation unit is used to generate the briefing based on the selected text data, the selected briefing type, the selected briefing topic, the selected business section, the selected briefing date and the selected briefing cover, and the briefing upload unit is used to upload the briefing to the briefing management module.
[0010] In one embodiment of the present application, the data analysis system also includes a task scheduling module and a multi-mode matching acquisition module. The task scheduling module is used to acquire the external energy information data in real time based on a task scheduling framework. The multi-mode matching acquisition module is used to match and collect the external energy information data based on multiple acquisition methods. The acquisition method is a method based on the parsing structure of a markup language parser, a method based on a browser, or a method based on an application program interface.
[0011] In one embodiment of the present application, the data analysis system further includes a data classification module, and the data classification module is used to classify the external energy information data based on an adapter mode to obtain classified external energy information data.
[0012] In a second aspect, the present application provides a data analysis method for obtaining an operation script, wherein the operation script is used to start, stop, deploy, maintain and / or update the data analysis system service described in any one of the first aspects, wherein the deployment of the data analysis system service includes: when the service instance of the data analysis system is started, the service of the data analysis system is registered to the service registry, and when the service instance is shut down, the data analysis system service is deregistered, wherein the startup of the data analysis system service includes: starting the containerized data analysis system service through a container command, wherein the updating of the data analysis system service includes: updating the data analysis system service through container replacement processing based on an update service package uploaded to a working directory, and obtaining data analysis results based on the operation script and the data analysis system service.
[0013] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the data analysis method described in the second aspect of the present application.
[0014] In a fourth aspect, the present application provides an electronic device, comprising: a memory storing a computer program; and a processor communicatively connected to the memory, for executing the data analysis method described in the second aspect of the present application when the computer program is called.
[0015] As described above, the data analysis system, data analysis method, medium and electronic device described in this application have the following beneficial effects:
[0016] The data analysis system can enhance the overall data analysis capability of the system, especially the data analysis capability for policy data, based on the knowledge graph generation module, the unified retrieval module, the intelligence analysis module, the statistical analysis module and other modules. The data analysis system has better data analysis capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Shown is a structural schematic diagram of the data analysis system described in an embodiment of the present application.
[0018] Figure 2 Shown is a schematic diagram of the architecture of the data analysis system described in an embodiment of the present application.
[0019] Figure 3 Shown is a deployment diagram of the data analysis system described in an embodiment of the present application.
[0020] Figure 4 Shown is a flow chart of the data analysis method described in an embodiment of the present application.
[0021] Figure 5 Shown is a schematic diagram of the structure of the electronic device described in an embodiment of the present application.
[0022] Component number description
[0023] 10 Data Analysis System
[0024] 110 Source data storage module
[0025] 120 External data acquisition module
[0026] 130 Knowledge Graph Generation Module
[0027] 140 Unified Search Module
[0028] 150 Intelligence Analysis Module
[0029] 160 Statistical Analysis Module
[0030] 170 Briefing Generation Module
[0031] S11-S12 Steps DETAILED DESCRIPTION
[0032] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0033] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0034] The following is a detailed description of the technical solution in the embodiment of the present application in conjunction with the accompanying drawings in the embodiment of the present application. Figure 1 and Figure 2 , Figure 1 and Figure 2 The data analysis system 10 is a schematic diagram of the structure and the schematic diagram of the architecture of the data analysis system. The present embodiment provides a data analysis system 10, and the data analysis system 10 includes:
[0035] A source data storage module 110 is used to store energy information data, wherein the energy information data includes policy data on renewable energy and news data on renewable energy. An external data acquisition module 120 is used to acquire energy information data outside the data analysis system. A knowledge graph generation module 130 is used to generate a knowledge graph based on the input data of the knowledge graph generation module. A unified retrieval module 140 is used to process input text based on a Chinese word segmenter and an index structure to acquire retrieval data. An intelligence analysis module 150 is used to process input time to acquire intelligence data and a knowledge graph based on the intelligence data. The intelligence data includes: the policy data within the input time range and / or the news data within the input time range. A statistical analysis module 160 is used to process dual carbon project data to acquire statistical analysis results of the dual carbon project data. A briefing generation module 170 is used to process selected text data to generate a briefing.
[0036] Alternatively, the policy may be a rule, a measure, a plan or a guideline.
[0037] Optionally, the data analysis system can be implemented by a knowledge application layer, a service engine layer, a data processing layer, and a source data layer. The source data layer is a data storage layer for storing data of the data analysis system. The data processing layer can be used to collect energy information data outside the data analysis system. The service engine layer can encapsulate retrieval methods, analysis methods, knowledge graph generation methods, etc. for the knowledge application layer to call. The knowledge application layer is the top-level structure of the data analysis system. The functions of modules such as the knowledge graph generation module and the unified retrieval module can be realized through the four-layer structure of the data analysis system.
[0038] Optionally, the energy information data is structured data or unstructured data, and the energy information data may also include: enterprise report data on renewable energy and industry information data on renewable energy. The policy data may specifically be government document report data. The policy data, the news data, the enterprise report data and the industry information data may specifically be from industry forums, self-media platforms, public account articles, etc.
[0039] Optionally, the external energy information data may be energy information data not stored in the source data storage module, such as renewable energy report data on a public account. The renewable energy report data is not stored in the source data storage module, and the renewable energy report data is the external energy information data. The dual carbon project data may be the external energy information data.
[0040] Optionally, the knowledge graph generation module includes: a knowledge extraction unit, a knowledge fusion unit and a knowledge reasoning unit, wherein the knowledge extraction unit, the knowledge fusion unit and the knowledge reasoning unit correspond to the knowledge extraction process, the knowledge fusion process and the knowledge reasoning process in the knowledge graph generation process, respectively, wherein the knowledge extraction unit may include entity recognition, entity extraction and other processes, and entity recognition and entity extraction refer to the recognition of target type entity candidate texts from free texts, and after text preprocessing, the results of word segmentation and part-of-speech tagging in the text are obtained. The word segmentation sequence after part-of-speech tagging is still a word with less information and incomplete semantics, and semantic phrases and phrases need to be identified through named entity recognition. Generally speaking, the task of named entity recognition is to identify seven types of named entities, namely, names of people, places, institutions, dates, times, percentages and currencies, from an article. Among the named entities, the recognition of names of people, places and institutions is the most difficult and most important three categories. By performing knowledge extraction, knowledge fusion, knowledge reasoning and other processes on the original data, a knowledge graph associated with the original data can be constructed, and the original data may include structured data, semi-structured data and unstructured data. The incoming data may refer to the original data for constructing the knowledge graph, and the knowledge graph based on the incoming data may refer to the knowledge graph associated with the incoming data, and the incoming data may be, for example, the policy data and / or the news data.
[0041] Chinese place names are a relatively small and slow-growing component of unregistered vocabulary. Most place names can be constructed into dictionaries based on existing authoritative place name knowledge bases, and place name vocabulary can be loaded into the dictionary, which can easily solve some problems. For the more difficult parts, rule-based methods can be used to handle them. At present, there are some relatively mature reasoning mechanisms to solve the recognition of Chinese place names.
[0042] This embodiment provides a method for named entity recognition, including: first identifying personal names, simple names and simple organization names in the text after word segmentation, and then identifying compound place names and compound organization names. The simple name may refer to a place name that does not contain other place names, such as Beijing, and a compound place name that contains other place names, such as Haidian District, Beijing. The method for named entity recognition provided in this embodiment belongs to supervised learning, and the parameters of the named entity recognition model need to be trained through large-scale labeled corpus. The method for identifying named entities also includes:
[0043] The trained conditional random field model is used to identify the names of people, simple names, simple organization names, and the names of people, places, and organizations in compound named entities in the input text to obtain a first recognition result. The first recognition result may refer to the annotation word string with the highest probability calculated according to the forward dynamic programming algorithm and the backward dynamic programming algorithm. The annotation word string may refer to the annotation combination of the names of people, simple names, simple organization names, and the names of people, places, and organizations in the input text, and the names of people, places, and organizations in compound named entities.
[0044] Based on the first recognition result, the compound place names and compound organization names in the input text are recognized through the trained high-level conditional random field model to obtain a second recognition result, and the second recognition result may refer to the conditional probability of the tag sequence obtained by the matrix calculation method, and the label sequence with the maximum probability calculated according to the forward dynamic programming algorithm and the backward dynamic programming algorithm. The difference between the high-level conditional random field model and the conditional random field model is that the high-level conditional random field model is used to recognize compound place names and compound organization names, and the conditional random field model is used to recognize personal names, simple names, and simple organization names.
[0045] The first recognition result and the second recognition result are corrected by rules to obtain a corrected first recognition result and a corrected second recognition result. In the process of named entity recognition, some recognition errors are inevitably introduced, some of which can be corrected by rules. A simple rule corrects this situation, that is, if the current word is a person's name and the next word is a place name feature word, the two words are merged and their types are marked as place names. Of course, if too many correction rules are used, it will affect the objective evaluation of the recognition performance of the conditional random field model, and will also cause rule matching conflicts. Therefore, in this step, we only used a small number of rules to correct some obvious recognition errors, and will not go into details.
[0046] The modified first recognition result and the modified second recognition result are converted into an output annotation document in XML format.
[0047] This embodiment extracts unstructured knowledge based on the conditional random field model. The conditional random field is a conditional probability distribution model of another set of output random variables under the condition of a set of input random variables. This model not only overcomes the shortcomings of the Markov model, but also solves the label offset problem of the maximum entropy model. Among them, the linear chain conditional random field is suitable for sequence labeling and is widely used. The parameterized form of the conditional random field is:
[0048] For the observation sequence x=(x1, x2, ...x n ) and the state sequence y = (y1, y2, ...y n ), let P(y|x) be a linear chain conditional random field, then under the condition that the random variable X takes the value x, the conditional probability that the random variable Y takes the value y is in the form of:
[0049]
[0050] in,
[0051]
[0052] In the formula, f k and h l is the characteristic function, λ k f k The weight, h l for u l is the weight of , Z(x) is the normalization factor, and the contents of the characteristic function and the weight are not described in detail in this embodiment.
[0053] The process of named entity recognition is a sequence labeling process, which regards a sentence as an observation sequence, each character or word in the sentence as a symbol, and then assigns a state to the symbol. k and u l , and obtain the conditional probability of satisfying the condition.
[0054] For an input sequence, the most likely output tag sequence (that is, the best state sequence). That is:
[0055]
[0056] When training the conditional random field model, the features to be selected are as follows (including but not limited to):
[0057] (1) Language features: Language features can reflect the basic information of characters and are a basic feature. The Chinese named entity recognition task often uses two methods based on character granularity and word granularity. Due to the randomness and freedom of power language, the segmentation of power text will result in segmentation errors and ultimately lead to the inability to recognize entities. Compared with word granularity, character granularity contains more information such as the internal structure of the entity, which can further improve the recognition effect. Therefore, this embodiment uses character granularity as a language feature. The character granularity language features are shown in Table 1 below.
[0058]
[0059] Table 1
[0060] (2) Contextual features: Contextual features refer to the interdependence between observations within the entity vocabulary window length. This feature can well characterize the internal dependencies within an entity and the relationship between an entity and a non-entity.
[0061] (3) Entity boundary features: Entity boundary features are an important basis for determining the position information of character boundary features. Determining the boundaries of named entities plays a vital role in named entity recognition. This paper adopts the BIO encoding mode to describe the word boundary features of the observation sequence, where B represents the beginning of the entity, I represents the remaining part of the entity, and O represents the non-entity sequence. The entity type is also encoded.
[0062] Optionally, the index structure may be an elasticsearch index structure, and the Chinese word segmenter may be an ik word segmenter.
[0063] Optionally, the retrieval data may include: energy information data related to the input text, industry hot word cloud data, hot information data, and a knowledge graph based on the energy information data related to the input text. The hot information may include: international hot information, Chinese hot information, regional hot information, industry hot information, and enterprise hot information. The energy information data related to the input text may refer to the energy information data with the same vocabulary as the input text. The input text may be a keyword or a short sentence. The keyword may be a keyword about the policy data, a keyword about the news data, a keyword about the enterprise report data, and / or a keyword about the industry information data. The short sentence may be a short sentence about the policy data, a short sentence about the news data, a short sentence about the enterprise report data, and / or a short sentence about the industry information data. The knowledge graph based on the energy information data related to the input text may refer to a knowledge graph associated with the energy information data related to the input text. The search data may also include: knowledge recommendation data of energy information data related to the input text, wherein the knowledge recommendation data of energy information data related to the input text may refer to energy information data having the same or similar keywords as the energy information data related to the input text. The enterprise hot information may be the external energy information data.
[0064] Optionally, all users of the data analysis system have the right to use the unified retrieval module, and the unified retrieval module also includes an associative input acquisition unit and an input text error correction unit. The associative input acquisition unit is used to process the original input text to obtain the input text, and the input text can be an associative word of the original input text. For example, the original input text is "dual carbon", and the input text is "dual carbon target". The input text error correction unit is used to process the original input text to obtain the input text, and the input text is the text after the original input text is corrected. For example, the original input text is "combustible minerals", and the original input text after error correction is "combustible minerals".
[0065] Optionally, the energy information data related to the input text may exist in the form of several energy information data subsets, and the energy information data in each energy information data subset is different. For example, the energy information data related to the input text includes 15 pieces of data, the energy information data subsets include 3, and each energy information data subset includes 5 different pieces of energy information data.
[0066] Optionally, the confidence of the energy information data in the energy information data subset is related to the authority of its issuing agency, and the authority of the issuing agency can be ranked in the order of national ministries and commissions>local governments>policy media platforms>central enterprises>state-owned enterprises>non-state-owned leading enterprises>industry organizations>third-party information platforms>financial institutions. The confidence of the energy information data in the energy information data subset can be represented by different colors, for example, confidence of 0.4-0.6 is represented by yellow, confidence greater than 0.6 is represented by green, and confidence less than 0.4 is represented by red, which will not be repeated here.
[0067] Optionally, the input time can be a specific year, month or date. For example, if the input time is 2020, the intelligence analysis module obtains the intelligence data within the scope of 2020 and the knowledge graph based on the intelligence data within the scope of 2020. If the input time is July 2020, the intelligence analysis module obtains the intelligence data within the scope of July 2020 and the knowledge graph based on the intelligence data within the scope of July 2020.
[0068] Optionally, the intelligence analysis module includes a screening unit, a display setting unit, a knowledge recommendation data generation unit, and a sentiment analysis unit. The screening unit is used to screen the intelligence data based on a screening area, a screening field, or a screening time period to obtain the filtered intelligence data. The display setting unit is used to set the release time, label, weight, and personalized display of keywords of the intelligence data. The knowledge recommendation data generation unit is used to generate knowledge recommendation data of the intelligence data based on the intelligence data. The sentiment analysis unit is used to perform sentiment analysis on the intelligence data based on a trained sentiment analysis model to obtain the sentiment tendency of the intelligence data. The sentiment analysis model can be a BERT model.
[0069] Optionally, the screening area may be the release area of the intelligence data, for example, if the release area is Shanghai, then the filtered intelligence data is the intelligence data released by Shanghai. The screening field may be the field to which the intelligence data belongs, for example, if the field is the field of carbon emissions, then the filtered intelligence data is the intelligence data in the field of carbon emissions. The screening time period may be the release time period of the intelligence data, for example, if the release time period is three days ago, then the filtered intelligence data is the intelligence data released three days ago.
[0070] Optionally, the personalized display may refer to a display method such as highlight display, and the weight of the policy data may be higher than the weight of the news data, for example, the weight of the policy data may be set to 1.0, and the weight of the news data may be set to 0.5. The labels and keywords of the intelligence data may be flexibly set according to actual needs, and this embodiment will not be repeated here.
[0071] Optionally, the knowledge recommendation data of the intelligence data may be data in the energy information data having the same or similar keywords as the intelligence data.
[0072] Optionally, the sentiment tendency of the policy data and the sentiment tendency of the news data may both include: a positive tendency, a neutral tendency and a negative tendency.
[0073] Optionally, the sentiment analysis unit also includes: a pre-training subunit and a fine-tuning subunit, the pre-training subunit is used to train the initialized sentiment analysis model based on unlabeled data and different pre-training tasks to obtain a pre-trained sentiment analysis model, and the fine-tuning subunit is used to fine-tune the pre-trained sentiment analysis model based on label data of downstream tasks to obtain the trained sentiment analysis model.
[0074] In the fine-tuning process of the pre-trained sentiment analysis model, for each task, it is only necessary to drag the input and output corresponding to the task into the pre-trained sentiment analysis model and fine-tune all parameters end-to-end. For example, for input, the sentence pairs A and B in the pre-training correspond to: sentence pairs in the text retelling task, Hypothesis-Premise pairs in the text entailment task, Question-Passage pairs in the intelligent question-answering task, and Similar-Sentence pairs in the text similarity task. For output, the representation of the Token is injected into an output layer for Token-Level tasks, such as sequence labeling or intelligent question-answering.
[0075] Optionally, the trained sentiment analysis model includes a multi-layer bidirectional Transformer encoder, and the trained sentiment analysis model includes a base network structure and a large network structure, wherein the base network structure has 12 stacked layers, a hidden vector dimension of 768, a number of self-attention heads of 12, and a fully connected network hidden layer dimension of 3072. The large network structure has 24 stacked layers, a hidden vector dimension of 1024, a number of self-attention heads of 16, and a fully connected network hidden layer dimension of 4096.
[0076] Optionally, the statistical analysis module includes a dual carbon project issuance quantity statistics unit, a dual carbon project type statistics unit, a dual carbon project year statistics unit, a dual carbon project knowledge graph retrieval unit, and a dual carbon project knowledge graph layout acquisition unit. The dual carbon project knowledge graph retrieval unit is used to acquire a knowledge graph based on dual carbon project data associated with the input keyword based on an input keyword. The dual carbon project knowledge graph layout acquisition unit is used to acquire a dual carbon project knowledge graph layout corresponding to the selected knowledge graph layout structure based on a selected knowledge graph layout structure. The dual carbon project issuance quantity statistics unit is used to acquire the issuance quantity of each type of dual carbon project in the dual carbon project data based on the dual carbon project data. The dual carbon project type statistics unit is used to acquire the percentage of each type of dual carbon project in the dual carbon project data to the total dual carbon projects based on the dual carbon project data. The dual carbon project year statistics unit is used to acquire the number of dual carbon projects in each year in the dual carbon project data based on the dual carbon project data. The dual carbon project types may include biogas, biomass or liquid biofuels, photovoltaics, solar energy, wind energy, hydropower, etc. For example, the dual carbon project issuance quantity statistics unit can count that the issuance quantity of biogas projects in the dual carbon project data is 10, the issuance quantity of photovoltaic projects is 10, etc. The dual carbon project type statistics unit can count that the proportion of biofuel projects in the dual carbon project data is 15%, the proportion of wind power projects is 27%, etc. The dual carbon project year statistics unit can count that the number of projects in 2016 in the dual carbon project data is 350.
[0077] Optionally, the statistical analysis module further includes a dual carbon project screening unit, which is used to screen the dual carbon project data based on the dual carbon project type and / or dual carbon project scale to obtain screened dual carbon project data. The dual carbon project data includes: dual carbon project name data, dual carbon project developer data, dual carbon project scale data and dual carbon project type data. The dual carbon project scale may include large scale, small scale, etc. The dual carbon project screening unit may screen out dual carbon project data whose scale types are all large scale.
[0078] Optionally, the input keyword can be any one or more combinations of the dual-carbon project name, dual-carbon project developer, dual-carbon project type and dual-carbon project scale. When the input keyword is the dual-carbon project developer, the dual-carbon project data associated with the input keyword can refer to all data in the dual-carbon project data whose developer is the dual-carbon project developer. The principles of the input keywords being the dual-carbon project type, dual-carbon project scale, and dual-carbon project name are similar to those of the dual-carbon project developer, and will not be repeated here. The knowledge graph based on the dual-carbon project data associated with the input keyword is similar to the principle of the knowledge graph based on intelligence data described above, and will not be repeated here.
[0079] Optionally, the knowledge graph layout structure may include layout structures such as a tree layout and a ring layout, and the selected knowledge graph layout structure may be any one of the knowledge graph layout structures, and the selected knowledge graph layout structure may be obtained through a user's selected operation instruction, and the user's selected operation instruction may refer to a computer operation instruction when the user selects the knowledge graph layout structure through a mouse. The dual-carbon project knowledge graph may refer to a knowledge graph based on dual-carbon project data associated with the input keyword.
[0080] Optionally, each unit of the statistical analysis module can display the processing result of each unit in a visual manner through a chart.
[0081] Optionally, the statistical analysis module is also used to process the project data to obtain the statistical analysis results of the project data. The project data may include: dual carbon project data, integrated energy project data, smart energy project data, wind, solar, and water storage project data, etc. The project data may specifically include: the dual carbon project data, project data tables of wind power and photovoltaic reports, enterprise photovoltaic power station installed capacity tables, and new energy installed capacity scale tables of various provinces (autonomous regions and municipalities).
[0082] Optionally, the statistical analysis module further includes: a project data sorting unit, an enterprise total project capacity sorting unit, an enterprise photovoltaic power station data statistics unit, and a unit for statistics of the scale of new energy installed capacity in each province (region, city). The project data sorting unit is used to sort the project data based on the project capacity of the project in the project data to obtain the sorted project data. The enterprise total project capacity sorting unit is used to sort the total project capacity of the enterprise in the project data to obtain the total project capacity of each enterprise after sorting. The enterprise photovoltaic power station data statistics unit is used to count the scale and increase of the photovoltaic power station of the enterprise in the project data each year to obtain the scale data of the photovoltaic power station of the enterprise and the increase data of the photovoltaic power station of the enterprise each year. The unit for statistics of the scale of new energy installed capacity in each province (region, city) in the project data is used to count the scale of new energy installed capacity in each province (region, city) each year to obtain the scale data of new energy installed capacity in each province (region, city) each year. The processing results of each unit in the statistical analysis module can be exported in the form of a report.
[0083] Optionally, the statistical analysis unit also includes: a project data knowledge graph retrieval unit and a project data knowledge graph layout acquisition unit. The principles of the project data knowledge graph retrieval unit and the dual-carbon project knowledge graph retrieval unit are similar. The principles of the project data knowledge graph layout acquisition unit and the dual-carbon project knowledge graph layout acquisition unit are similar. To save space in the specification, they will not be described one by one here.
[0084] Optionally, the data analysis system further includes: a briefing management module, the briefing generation module includes: a text acquisition unit, a briefing generation unit and a briefing upload unit, the text acquisition unit is used to acquire the selected text data based on the text selection operation instruction, the briefing generation unit is used to generate the briefing based on the selected text data, the selected briefing type, the selected briefing topic, the selected business section, the selected briefing date and the selected briefing cover, and the briefing upload unit is used to upload the briefing to the briefing management module. The selected text data is the data in the intelligence data.
[0085] Optionally, the briefing type can be any one of the types such as daily report and weekly report, the briefing topic can be any one of the topics such as national ministry topic, local government topic, industry organization topic, industry enterprise topic, technology dynamics topic and expert opinion topic, the business segment can be any one of the segments such as new energy business segment and renewable energy business segment, the briefing cover can be any one of the preset briefing covers, the preset briefing cover can be multiple preset picture covers, and the selected briefing date can be any time date.
[0086] Optionally, the briefing management module is used to manage the briefings, including retrieving briefings uploaded to the briefing management module according to briefing topics, retrieving briefings uploaded to the briefing management module according to briefing types, business sectors, briefing dates, briefing names, etc., and editing or deleting briefings uploaded to the briefing management module, etc. The briefing management module may also include a briefing export unit, which is used to export the briefings. The exported briefing file type may be a table file type, etc.
[0087] Optionally, the text selection operation instruction may be a computer operation instruction when the user interacts with the computer, and the computer operation instruction carries the text data selected by the user, such as a computer operation instruction when the user selects text by clicking the mouse. The selected briefing type, selected briefing topic, selected business section, selected briefing date and selected briefing cover may all refer to the user-selected briefing type, user-selected briefing topic, user-selected business section, user-selected briefing date and user-selected briefing cover, which can all be implemented through computer operation instructions, and the principle is similar to that of the user-selected text data, which will not be repeated here.
[0088] Optionally, the data analysis system further includes a task scheduling module and a multi-mode matching acquisition module, wherein the task scheduling module is used to acquire the external energy information data in real time based on the task scheduling framework, and the multi-mode matching acquisition module is used to match and collect the external energy information data based on multiple acquisition methods, wherein the acquisition method is a method of collecting the parsing structure based on a markup language parser, a method of collecting based on a browser, or a method of collecting based on an application program interface. Among them, the method of collecting the parsing structure based on a markup language parser may refer to a method of collecting based on a jsoup parsing structure, and the method of collecting based on a browser may refer to a method of collecting based on a selenium browser. And in the process of collecting the external energy information data based on multiple acquisition mode matching, the reliability of the data collection process is further guaranteed by cookie caching, dynamic configuration of URL parameters, and multi-threaded concurrent collection. Different from the existing unified collection method through API, multi-mode matching collection ensures the professionalism and reliability of the overall data.
[0089] Optionally, the task scheduling framework may be an xxl-job framework, and the task scheduling unit may enable the data analysis system to perform millions of task schedulings per day, thereby ensuring the timeliness of platform data collection.
[0090] Optionally, the data analysis system further comprises a data classification module, and the data classification module is used to classify the external energy information data based on an adapter mode to obtain classified external energy information data.
[0091] According to the above description, the data analysis system described in this embodiment can enhance the overall data analysis capability of the system according to the knowledge graph generation unit, the unified retrieval unit, the intelligence analysis unit, the statistical analysis unit and other units, especially the data analysis capability for policy data, and the data analysis system has better data analysis capability.
[0092] See also Figure 3 As shown, this embodiment provides a deployment structure diagram of the data analysis system, and the deployment structure diagram is generally divided into:
[0093] Storage cluster: The data analysis system uses KGDB and MySQL, both of which are deployed in clusters. KGDB uses a sharding and replica set mode. Sharding splits the database and distributes it on different machines, while the replica set ensures high data availability. MySQL cluster is a master-slave mode; cache Redis uses a cluster fully distributed mode, and index ElasticSearch is deployed in a "master-slave" pair.
[0094] Middleware and task scheduling: The middleware is mainly Kafka cluster, and the task height adopts XXL-Job cluster; file storage adopts FastDFS cluster deployment mode.
[0095] Front-end, gateway and load balancing: The front-end uses Nginx container, uses dual-machine mode to form a high-availability architecture, and implements load balancing through HA; the gateway KGGateWay also deploys instances to achieve high availability. Distributed deployment can use any of the modes of native deployment, container deployment and K8S deployment. Any sub-cluster can add instance nodes to achieve horizontal performance expansion and solve performance bottlenecks.
[0096] See also Figure 4 As shown, this embodiment provides a data analysis method, and the data analysis method includes:
[0097] S11, obtaining an operation script, wherein the operation script is used for starting, stopping, maintaining, deploying and updating the data analysis system service. The deployment of the data analysis system service includes: when the service instance of the data analysis system is started, the service of the data analysis system is registered to the service registry, and when the service instance is shut down, the data analysis system service is unregistered. The starting of the data analysis system service includes: starting the containerized data analysis system service through a container command. The updating of the data analysis system service includes: updating the data analysis system service through container replacement processing based on the update service package uploaded to the working directory.
[0098] Optionally, the container command may refer to a docker command, and the service registry may be queried by a client to find an available instance of the data analysis system service. The working directory may refer to a working directory of the data analysis system service.
[0099] Optionally, clients of services and routers query the service registry to find available instances of the service. The service registry may call the health check API of the service instance to verify that it is able to handle the request.
[0100] Optionally, the data analysis system supports B / S architecture and distributed parallelism. The data analysis system is deployed based on a containerization mechanism. The deployment features of the data analysis system include: providing a single-machine, multi-center multi-active or disaster recovery solution, all services and components support multi-location, multi-network environment deployment, support scripted application start and stop, common maintenance actions, application deployment or update, high-availability system architecture solutions such as HA or multi-active or clustering, and a corresponding automated management mechanism. The application itself completes daily log and temporary file cleanup actions, and provides data archiving and cleaning solutions required for long-term operation. The data subsystem system improves performance through a multi-node multi-active method and supports horizontal expansion. There is no single point in each link, and if any point fails or the service fails, the business can continue without manual intervention.
[0101] S12, obtaining data analysis results based on the operation script and the data analysis system service.
[0102] The protection scope of the data analysis method described in the embodiment of the present application is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.
[0103] In the several embodiments provided in the present application, it should be understood that the disclosed device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units or units, which can be electrical, mechanical or other forms.
[0104] The unit / unit described as a separate component may or may not be physically separated, and the component displayed as a unit / unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, each functional unit / unit in each embodiment of the present application may be integrated into a processing unit, or each unit / unit may exist physically separately, or two or more units / units may be integrated into one unit / unit.
[0105] Those of ordinary skill in the art should further appreciate that the units and steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0106] This embodiment provides an electronic device, the electronic device comprising a memory storing a computer program; a processor connected to the memory for communication, and executing the computer program when the computer program is called. Figure 4 The data analysis methods shown.
[0107] The present application embodiment also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by a program to instruct the processor, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state hard disk (SSD)), etc.
[0108] The present application embodiment may also provide a computer program product, the computer program product including one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer or data center.
[0109] When the computer program product is executed by a computer, the computer executes the method described in the above method embodiment. The computer program product may be a software installation package, and when the above method is required, the computer program product may be downloaded and executed on a computer.
[0110] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0111] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A data analysis system, characterized in that: The data analysis system comprises: A source data storage module, used for storing energy information data, wherein the energy information data includes policy data on renewable energy and news data on renewable energy; An external data acquisition module, used to acquire energy information data outside the data analysis system; A knowledge graph generation module is used to generate a knowledge graph based on the input data of the knowledge graph generation module according to the input data of the knowledge graph generation module. The knowledge graph generation module includes: a knowledge extraction unit, a knowledge fusion unit and a knowledge reasoning unit, wherein the knowledge extraction unit may include entity recognition and entity extraction processes. Entity recognition and entity extraction refer to the identification of target type entity candidate texts from free texts. After text preprocessing, the results of word segmentation and part-of-speech tagging in the text are obtained; A unified search module, used for processing the input text based on the Chinese word segmenter and the index structure to obtain search data, all users of the data analysis system have the right to use the unified search module, the unified search module also includes an associative input acquisition unit and an input text error correction unit, the associative input acquisition unit is used for processing the original input text to obtain the input text, and the input text can be an associative word of the original input text; The intelligence analysis module is used to process the input time to obtain intelligence data and a knowledge graph based on the intelligence data, wherein the intelligence data includes: the policy data within the input time range and / or the news data within the input time range; the intelligence analysis module includes a screening unit, a display setting unit, a knowledge recommendation data generation unit, and a sentiment analysis unit, wherein the screening unit is used to screen the intelligence data based on a screening area, a screening field, or a screening time period to obtain the screened intelligence data, the display setting unit is used to set the release time, label, weight, and keyword of the intelligence data for personalized display, and the knowledge recommendation data generation unit is used to generate the intelligence data based on the intelligence data. Knowledge recommendation data, the sentiment analysis unit is used to perform sentiment analysis on the intelligence data based on the trained sentiment analysis model to obtain the sentiment tendency of the intelligence data, the trained sentiment analysis model includes a multi-layer bidirectional Transformer encoder, the trained sentiment analysis model includes a base network structure and a large network structure, the base network structure has 12 stacking layers, a hidden vector dimension of 768, a number of self-attention heads, and a fully connected network hidden layer dimension of 3072, the large network structure has 24 stacking layers, a hidden vector dimension of 1024, a number of self-attention heads, and a fully connected network hidden layer dimension of 4096; A statistical analysis module, used for processing the dual carbon project data to obtain statistical analysis results of the dual carbon project data; A briefing generation module, used for processing the selected text data to generate a briefing; The data analysis system also includes a task scheduling module and a multi-mode matching acquisition module. The task scheduling module is used to acquire the external energy information data in real time based on a task scheduling framework. The multi-mode matching acquisition module is used to match and acquire the external energy information data based on multiple acquisition methods. The acquisition methods are a method of acquiring the parsing structure based on a markup language parser, a method of acquiring the data based on a browser, or a method of acquiring the data based on an application program interface. The method of acquiring the parsing structure based on a markup language parser may refer to a method of acquiring the data based on a jsoup parsing structure, and the method of acquiring the data based on a browser may refer to a method of acquiring the data based on a selenium browser. In the process of acquiring the external energy information data based on multiple acquisition mode matching, the reliability of the data acquisition process is further ensured by cookie caching, dynamic configuration of URL parameters, and multi-threaded concurrent acquisition. The method for identifying named entities also includes: identifying the names of people, simple names, simple organization names in the input text, and the names of people, place names, and organization names in compound named entities through a trained conditional random field model to obtain a first recognition result, wherein the first recognition result may refer to a labeling word string with the highest probability calculated according to a forward dynamic programming algorithm and a backward dynamic programming algorithm, and the labeling word string may refer to a labeling combination of the names of people, simple names, simple organization names in the input text, and the names of people, place names, and organization names in compound named entities; based on the first recognition result, identifying the compound place names and compound organization names in the input text through a trained high-level conditional random field model to obtain a second recognition result. , the second recognition result may refer to the conditional probability of the tag sequence obtained by the matrix calculation method, and the labeling sequence with the maximum probability calculated according to the forward dynamic programming algorithm and the backward dynamic programming algorithm. The difference between the high-level conditional random field model and the conditional random field model is that the high-level conditional random field model is used to identify compound place names and compound organization names, and the conditional random field model is used to identify personal names, simple names and simple organization names; the first recognition result and the second recognition result are rule-corrected to obtain a corrected first recognition result and a corrected second recognition result, and the corrected first recognition result and the corrected second recognition result are converted into output labeling documents in xml format.
2. The data analysis system according to claim 1, characterized in that: The sentiment analysis unit also includes: a pre-training subunit and a fine-tuning subunit, the pre-training subunit is used to train the initialized sentiment analysis model based on unlabeled data and different pre-training tasks to obtain a pre-trained sentiment analysis model, and the fine-tuning subunit is used to fine-tune the pre-trained sentiment analysis model based on label data of downstream tasks to obtain the trained sentiment analysis model.
3. The data analysis system according to claim 1, characterized in that: The statistical analysis module includes a dual-carbon project issuance quantity statistics unit, a dual-carbon project type statistics unit, a dual-carbon project year statistics unit, a dual-carbon project knowledge graph retrieval unit, and a dual-carbon project knowledge graph layout acquisition unit. The dual-carbon project knowledge graph retrieval unit is used to obtain a knowledge graph based on dual-carbon project data associated with the input keyword based on an input keyword; the dual-carbon project knowledge graph layout acquisition unit is used to obtain a dual-carbon project knowledge graph layout corresponding to the selected knowledge graph layout structure based on a selected knowledge graph layout structure; the dual-carbon project issuance quantity statistics unit is used to obtain the issuance quantity of each type of dual-carbon projects in the dual-carbon project data based on the dual-carbon project data; the dual-carbon project type statistics unit is used to obtain the percentage of each type of dual-carbon projects in the dual-carbon project data in the total dual-carbon projects based on the dual-carbon project data; and the dual-carbon project year statistics unit is used to obtain the number of dual-carbon projects in each year in the dual-carbon project data based on the dual-carbon project data.
4. The data analysis system according to claim 1, characterized in that: The data analysis system also includes: a briefing management module, the briefing generation module includes: a text acquisition unit, a briefing generation unit and a briefing upload unit, the text acquisition unit is used to acquire the selected text data based on a text selection operation instruction, the briefing generation unit is used to generate the briefing based on the selected text data, the selected briefing type, the selected briefing topic, the selected business section, the selected briefing date and the selected briefing cover, and the briefing upload unit is used to upload the briefing to the briefing management module.
5. The data analysis system according to claim 1, characterized in that: The data analysis system further includes a data classification module, and the data classification module is used to classify the external energy information data based on an adapter mode to obtain classified external energy information data.
6. A data analysis method, characterized in that: The data analysis method comprises: Obtain an operation script, wherein the operation script is used for starting, stopping, deploying, maintaining and updating the data analysis system service according to any one of claims 1 to 5, wherein the deployment of the data analysis system service includes: when the service instance of the data analysis system is started, the service of the data analysis system is registered to the service registry, and when the service instance is shut down, the data analysis system service is unregistered, the starting of the data analysis system service includes: starting the containerized data analysis system service through a container command, and the updating of the data analysis system service includes: updating the data analysis system service through container replacement processing based on the update service package uploaded to the working directory; A data analysis result is obtained based on the operation script and the data analysis system service.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data analysis method according to claim 6 is implemented.
8. An electronic device, characterized in that: The electronic device comprises: A memory storing a computer program; A processor is communicatively connected to the memory and executes the data analysis method of claim 6 when calling the computer program.
Citation Information
Patent Citations
Hadoop cluster system and Hadoop cluster rapid establishment method based on container technology
CN106790483A
Internet intelligence crawling and recommendation system for field of investment attraction
CN106960063A
Knowledge management system based on artificial intelligence big data
CN116384615A
