Automatic chart generator based on artificial intelligence
Through an automatic chart generator based on artificial intelligence, combined with natural language understanding and multiple encryption modes, the problem that chart generators in the existing technology are difficult to encrypt and process data is solved, ensuring the security of charts and data, and meeting different needs. Encryption requirements.
Patent Information
- Application Number
- CN202410840675.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult for existing chart generators to encrypt data according to data types and requirements when generating charts, and cannot guarantee the security of data in the output charts.
An automatic chart generator based on artificial intelligence is designed, including an artificial intelligence module, a data processing module, a chart generation module, an encryption module, a decryption module, a data sharing module and a visualization module. It automatically determines users through natural language understanding and data collection. Intent and encrypts the generated charts based on the data source and intent, including encryption of data sets and charts, supporting desensitization and freezing processing, image encryption and other encryption modes.
After automatically generating charts according to user intentions, the chart and related data are automatically encrypted to ensure the security of sensitive data when sharing, meet different chart encryption requirements, and improve data security.
Smart Images

Figure CN118607484A
Abstract
Description
Technical Field
[0001] The present invention relates to an automatic chart generator based on artificial intelligence, and in particular to an automatic chart generator based on artificial intelligence applied in the field of chart generators. Background Art
[0002] With the development of science and technology, automatic chart generators have become important tools in the fields of data analysis, business intelligence, etc. At present, there are many automatic chart generator technologies on the market.
[0003] In order to solve the problem of chart generators identifying user chart generation needs, a chart generator in the market has an artificial intelligence-assisted design for identifying user needs, which has a certain market share.
[0004] The specification of Chinese invention patent CN202210904242.8 discloses a chart generation method and device, which includes: enabling Canal to connect multiple business databases in a business system; obtaining at least one database table that has changed in each business database through Canal, and determining the table change operation corresponding to at least one database table; preprocessing at least one database table, and based on the table change operation corresponding to at least one database table, obtaining intermediate data corresponding to at least one database table; determining the data attributes corresponding to the intermediate data, and adding the intermediate data to the chart data set corresponding to the data attributes; determining the chart type corresponding to the chart data set, and generating a data chart corresponding to the chart type based on each data stored in the chart data set. The method provided by the invention can be used without intruding into the business system, and can be used to count the database tables in near real time, with timely data display and no impact on the original system.
[0005] Existing chart generators can only automatically generate charts based on input data and requirements. When generating charts, it is not easy to encrypt data according to data types and requirements, and it is not easy to ensure the security of data in output charts. Summary of the invention
[0006] In view of the above-mentioned prior art, the technical problem to be solved by the present invention is that the existing chart generator is not easy to encrypt data according to the data type and requirements when generating a chart, and it is not easy to ensure the security of the data in the output chart.
[0007] To solve the above problems, the present invention provides an automatic chart generator based on artificial intelligence, including an artificial intelligence module, a data processing module, a chart generation module, an encryption module, a decryption module, a data sharing module and a visualization module, wherein a data acquisition unit is connected to a data storage terminal and an open data source;
[0008] The artificial intelligence module is connected to a natural language understanding unit and a data collection unit. The natural language module is used to extract keywords and convert them into machine language, and the artificial intelligence module is used to judge the intention and extract keywords in the intention for data collection.
[0009] The data collection unit is used for data collection. During data collection, the data related to the keyword in the data source is retrieved and collected, and the collected data is input into the data processing module;
[0010] The data processing module is used to process the data into a set format; and the set format matches the chart generation module; the data processing method includes image data processing and text image processing;
[0011] The data processing module processes the data to generate a data set that meets the requirements of the chart generation module;
[0012] The chart generation module is provided with a chart knowledge base and a chart generation program; the chart knowledge base includes the names, categories, definitions, analysis intentions and data requirements of different charts; the data requirements include data format requirements and data type requirements;
[0013] The encryption module is used to encrypt data sets and charts. For charts generated from open data sources, the encryption module does not encrypt charts and data sets by default.
[0014] The data storage terminal is provided with a sensitive data storage unit and a common storage unit. For a chart generated based on the data in the common storage unit, the encryption module does not encrypt the chart and the data set by default;
[0015] For charts generated based on data in the sensitive data storage unit, the encryption module encrypts both the chart and the data set by default;
[0016] The visualization module is used to visualize the chart generated by the chart generation module or the chart encrypted by the encryption module; the associated data source is displayed when the chart is visualized.
[0017] In the above-mentioned AI-based automatic chart generator, after the chart is automatically generated according to the user's intention, the generated chart and related data are automatically encrypted according to the data source and user's intention, to ensure the data security of charts involving sensitive data when they are shared.
[0018] As a further improvement of the present application, when the encryption module encrypts the data in the data set, the data extracted from the data storage end is desensitized and frozen;
[0019] When the encryption module encrypts a chart, the specified text in the chart data is replaced or encrypted. There are multiple encryption modes and encryption registrations in the encryption module. The encrypted chart is restored to the original chart after being decrypted by the decryption module.
[0020] As a further improvement of the present application, the encryption module encrypts the chart metadata and the chart image when encrypting, and the encryption module encrypts according to the keywords in the intent and the default encryption settings when performing encryption processing, and the metadata is information describing the properties and characteristics of the chart, including the title, axis labels, legends, data points and data sources;
[0021] When the encryption module encrypts the chart image, it performs image processing on the chart image so that part of the chart image is covered by mosaics.
[0022] As a further improvement of the present application, when the data processing module processes the data source file: for image data, first perform image recognition, extract text data in the image, then extract key data, unify the format and input it into the chart generation module;
[0023] For text data, directly extract key data, unify the format and input it into the chart generation module.
[0024] As another improvement of the present application, the data acquisition unit is used to collect external data and local data. When collecting external data, the data is collected by connecting to the Internet through an Internet module. When collecting local data, data is collected from the data storage terminal.
[0025] As another improvement and supplement to the present application, when the artificial intelligence module determines the intent, it determines the type of the source of the intent. If the input is text, it segmentes the input text, extracts keywords through semantic analysis, and rotates the corresponding chart type and data source according to the keywords.
[0026] As another improved supplement of the present application, the data storage end includes a local storage end and an open data source. When the artificial intelligence module judges the intention, if the data source is not specified in the keyword, data collection is performed on the open data source as a whole; if the data source is specified in the keyword, data collection is performed on the specified data source.
[0027] As another improved supplement of the present application, the data set is in a two-dimensional array structure, and the data processing module judges the validity and legality of the fields in the data set and records the type information of each field.
[0028] As another improvement of the present application, the data sharing module is used to generate a sharing link matching the chart, and the sharing link includes a non-encrypted link and an encrypted link.
[0029] As another improvement of the present application, when the chart generation module generates a chart, based on the analysis intent and data features obtained by the artificial intelligence module, the chart knowledge base is used as a training set, and a decision tree model for judging the chart type is obtained by training with a decision tree algorithm; then the intent keywords and data set are input to generate a chart with the highest matching degree.
[0030] In summary, this solution can realize automatic encryption of generated charts and related data according to the data source and user intention after automatically generating charts according to user intentions, and the encryption area can be selected according to the intention during encryption, which is convenient for meeting the encryption needs of different charts and easy to ensure the data security of charts involving sensitive data when sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a system block diagram of the first and second implementation modes of this application;
[0032] Figure 2 This is a schematic diagram of the system operation of the first and second implementation modes of this application;
[0033] Figure 3 This is a workflow diagram of the first implementation method of this application;
[0034] Figure 4 This is a workflow diagram for the second implementation mode of this application;
[0035] Figure 5 This is a topological diagram of the first and second implementation modes of this application. DETAILED DESCRIPTION
[0036] The following describes two implementation modes of the present application in detail with reference to the accompanying drawings.
[0037] The first implementation method:
[0038] Figure 1-3 and Figure 5 An automatic chart generator based on artificial intelligence is shown, including an artificial intelligence module, a data processing module, a chart generation module, an encryption module, a decryption module, a data sharing module and a visualization module. The data acquisition unit is connected to a data storage terminal and an open data source. The open data source includes multiple different data interfaces, such as API, database and data files. Through these interfaces, the data acquisition unit can collect various data, including but not limited to text, pictures, audio and video.
[0039] The artificial intelligence module is connected to a natural language understanding unit and a data collection unit. The natural language module is used to extract keywords and convert them into machine language, and the artificial intelligence module is used to judge intentions and extract keywords in the intentions for data collection. When a user communicates with the artificial intelligence module, the artificial intelligence module can identify the intentions in the user's conversation and extract keywords. The artificial intelligence module adopts an open source artificial intelligence model in the existing technology.
[0040] When the artificial intelligence module determines the intent, it determines the type of the source of the intent. If the input is text, it segmentes the input text, extracts keywords through semantic analysis, and rotates the corresponding chart type and data source according to the keywords.
[0041] The data storage end includes the local storage end and the open data source. When the artificial intelligence module judges the intention, if the data source is not specified in the keyword, data collection is performed on the open data source as a whole; if a data source is specified in the keyword, data collection is performed on the specified data source.
[0042] The data collection unit is used for data collection. When collecting data, it retrieves and collects data related to keywords in the data source, and the collected data is input into the data processing module; the data collection unit is used to collect external data and local data. When collecting external data, it connects to the Internet through the Internet module to collect data, and when collecting local data, it collects data in the data storage terminal.
[0043] The data storage terminal is provided with a sensitive data storage unit and a common storage unit. For a chart generated based on the data in the common storage unit, the encryption module does not encrypt the chart and the data set by default. For a chart generated based on the data in the sensitive data storage unit, the encryption module encrypts both the chart and the data set by default.
[0044] The data processing module is used to process the data into a set format; and the set format matches the chart generation module; the data processing methods include image data processing and text image processing; when the data processing module processes the data source file: for image data, first perform image recognition, extract text data in the image, then extract key data, and input the unified format into the chart generation module;
[0045] For text data, directly extract key data, unify the format and input it into the chart generation module.
[0046] The data processing module processes the data to generate a data set that meets the requirements of the chart generation module; the data set is in a two-dimensional array structure;
[0047] The data processing module can retrieve the data set, judge the validity and legality of the fields in the data set, and record the type information of each field; at the same time, when the data processing module retrieves, it marks the data source of each data, and when the data source of the data in the data set has a sensitive data storage unit, it activates the encryption module to encrypt the data; at the same time, the data is marked and sent to the chart generation module, so that the chart generation module calls the encryption module to encrypt the part of the chart generated by the data set corresponding to the marked data;
[0048] The chart generation module is provided with a chart knowledge base and a chart generation program; the chart knowledge base includes the names, categories, definitions, analysis intentions and data requirements of different charts; the data requirements include data format requirements and data type requirements;
[0049] When the chart generation module generates a chart, it uses the chart knowledge base as a training set based on the analysis intent and data features obtained by the artificial intelligence module, and uses the decision tree algorithm to train a decision tree model for judging the chart type; then it inputs the intent keywords and data set to generate the chart with the highest matching degree.
[0050] In the above-mentioned AI-based automatic chart generator, after the chart is automatically generated according to the user's intention, the generated chart and related data are automatically encrypted according to the data source and user's intention, to ensure the data security of charts involving sensitive data when they are shared.
[0051] Second implementation method:
[0052] Figure 2-5 As shown, the encryption module is used for data set encryption and chart encryption; for charts generated from open data sources, the encryption module does not encrypt both the charts and the data sets by default;
[0053] For charts generated based on data in common storage units, the encryption module does not encrypt the charts and data sets by default. For charts generated based on data in sensitive data storage units, the encryption module encrypts both the charts and data sets by default.
[0054] The visualization module is used to visualize the chart generated by the chart generation module or the chart encrypted by the encryption module; the associated data source is displayed when the chart is visualized.
[0055] When the encryption module encrypts the data in the data set, it will desensitize and freeze the data extracted from the data storage end. After freezing, the data will be read-only;
[0056] When the encryption module encrypts a chart, the specified text in the chart data is replaced or encrypted. There are multiple encryption modes and encryption registrations in the encryption module. The encrypted chart is restored to the original chart after being decrypted by the decryption module.
[0057] The encryption module encrypts the chart metadata and chart images. The encryption module encrypts according to the keywords in the intent and the default encryption settings. The metadata is the information describing the properties and characteristics of the chart, including the title, axis labels, legends, data points, and data sources.
[0058] When the encryption module encrypts the chart image, it performs image processing on the chart image so that part of the chart image is covered by mosaics.
[0059] When the encryption module is working, it can also encrypt based on the keywords in the intent identified by the artificial intelligence module. If the intent involves designated encrypted data or files, the designated data or files will be encrypted first;
[0060] Optionally, the encryption module includes a partial data encryption mode and an overall encryption mode. In the partial data encryption mode, sensitive keywords are set in the sensitive data storage unit. When the encryption module performs encryption, the encryption module only encrypts data related to the sensitive keywords in the data set;
[0061] In the overall encryption mode, the encryption module encrypts all data in the data set originating from the sensitive data storage unit.
[0062] The data sharing module is used to generate sharing links that match the chart. The sharing links include non-encrypted links and encrypted links. Users can choose to generate them according to their needs.
[0063] The encryption module of this embodiment, after the chart generation module generates the chart, searches for the data set corresponding to the chart, and then identifies whether there is a sensitive data storage unit in the data source of the data in the data set. If so, the data is encrypted, and the corresponding data and image area in the chart are encrypted at the same time, and then the encrypted chart and data set are input into the visualization module; if not, the chart and data set are directly input into the visualization module;
[0064] When the visualization module displays encrypted charts and data sets, users can view the original unencrypted charts and data sets after calling the decryption module to decrypt them;
[0065] This implementation can determine whether to encrypt a chart based on its data source after the chart is generated, so that the chart is encrypted before visualization, making it difficult for key data to be leaked.
[0066] In summary, this solution can realize automatic encryption of generated charts and related data according to the data source and user intention after automatically generating charts according to user intentions, and the encryption area can be selected according to the intention during encryption, which is convenient for meeting the encryption needs of different charts and easy to ensure the data security of charts involving sensitive data when sharing.
[0067] In view of current practical needs, the above-mentioned implementation mode adopted in this application is not limited to the scope of protection. Various changes made within the knowledge scope of technical personnel in this field without departing from the concept of this application still fall within the scope of protection of the present invention.
Claims
1. An automatic chart generator based on artificial intelligence, characterized by: It includes an artificial intelligence module, a data processing module, a chart generation module, an encryption module, a decryption module, a data sharing module and a visualization module. The data acquisition unit is connected to a data storage terminal and an open data source; The artificial intelligence module is connected to a natural language understanding unit and a data collection unit. The natural language module is used to extract keywords and convert them into machine language, and the artificial intelligence module is used to judge the intention and extract keywords in the intention for data collection. The data collection unit is used for data collection. During data collection, data related to the keyword in the data source is retrieved and collected, and the collected data is input into the data processing module; The data processing module is used to process the data into a set format; and the set format matches the chart generation module; the data processing method includes image data processing and text image processing; The data processing module generates a data set that meets the requirements of the chart generation module after processing the data; The chart generation module is provided with a chart knowledge base and a chart generation program; the chart knowledge base contains the names, categories, definitions, analysis intentions and data requirements of different charts; the data requirements include data format requirements and data type requirements; The encryption module is used for data set encryption and chart encryption; for charts generated according to the open data source, the encryption module does not encrypt the charts and data sets by default; The data storage terminal is provided with a sensitive data storage unit and a common storage unit. For a chart generated according to the data in the common storage unit, the encryption module does not encrypt the chart and the data set by default; For charts generated based on data in the sensitive data storage unit, the encryption module encrypts both the chart and the data set by default; The visualization module is used to visualize the chart generated by the chart generation module or the chart encrypted by the encryption module; when the chart is visualized, the associated data source is displayed.
2. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: When the encryption module encrypts the data in the data set, the data extracted from the data storage end will be desensitized and frozen; When the encryption module encrypts a chart, the specified text in the chart data is replaced or encrypted. A plurality of encryption modes and encryption registrations are arranged in the encryption module. The encrypted chart is restored to the original chart after being decrypted by the decryption module.
3. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: The encryption module encrypts the chart metadata and chart image during encryption, where the metadata is information describing the properties and features of the chart, including title, axis labels, legend, data points and data source; When the encryption module encrypts the chart image, it performs image processing on the chart image so that part of the chart image is covered by mosaics.
4. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: When the data processing module processes the data source file: for image data, first perform image recognition, extract text data in the image, then extract key data, unify the format and input it into the chart generation module; For text data, directly extract key data, unify the format and input it into the chart generation module.
5. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: The data acquisition unit is used to collect external data and local data. When collecting external data, it connects to the Internet through the Internet module to collect data. When collecting local data, it collects data in the data storage terminal.
6. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: When the artificial intelligence module determines the intent, it determines the type of the source of the intent. If the input is text, it segmentes the input text, extracts keywords through semantic analysis, and rotates the corresponding chart type and data source according to the keywords.
7. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: The data storage end includes a local storage end and an open data source. When the artificial intelligence module judges the intention, if the data source is not specified in the keyword, data collection is performed on the entire open data source; if a data source is specified in the keyword, data collection is performed on the specified data source.
8. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: The data set is in a two-dimensional array structure. The data processing module determines the validity and legality of the fields in the data set and records the type information of each field.
9. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: The data sharing module is used to generate a sharing link matching the chart, and the sharing link includes a non-encrypted link and an encrypted link.
10. The automatic chart generator based on artificial intelligence according to claim 1, characterized in that: When generating a chart, the chart generation module uses the chart knowledge base as a training set based on the analysis intent and data features obtained by the artificial intelligence module, and uses a decision tree algorithm to train a decision tree model for determining the chart type; then the intent keywords and data set are input to generate the chart with the highest matching degree.
Citation Information
Patent Citations
Chart generation method and device
CN114970479A
