Chart configuration visualization method and system based on chart recommendation

Through intelligent recommendation charts and natural language intelligent data analysis methods, it solves the problem that traditional data analysis charts cannot adapt to large-scale data processing, improves analysis efficiency and user experience, reduces development costs, and achieves real-time optimized response.

CN118550632APending Publication Date: 2024-08-27金现代信息产业股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410737874.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Traditional data analysis chart methods cannot adapt to the processing and analysis needs of large-scale data, resulting in high development costs, low efficiency, poor user experience, and lack of interactivity.

Method used

Adopting a visualization method based on chart recommendation, using intelligent recommendation charts and natural language intelligent analysis data, optimizing chart type recommendations through pre-trained language models, and performing visual configurations, integrating various chart components, reducing duplication of developer work and increasing user interactivity .

Benefits of technology

It improves the efficiency and accuracy of data analysis, reduces development costs, simplifies operations, enhances user experience, achieves real-time optimized response, and solves the problems of low efficiency and insufficient interactivity of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550632A
    Figure CN118550632A
Patent Text Reader

Abstract

The invention discloses a chart configuration visualization method and system based on chart recommendation. The method comprises the steps of obtaining target data and a data analysis intention; according to the data analysis intention, adopting a pre-training language model optimized and improved by prompt word engineering to recommend a chart type and select a target chart; carrying out visual configuration on the attribute parameters of the target chart; and according to the target chart and the configured attribute parameters thereof, generating a visual analysis chart for the target data, and according to a received user query instruction, analyzing the visual analysis chart and feeding back a corresponding query result. By intelligently recommending a chart and intelligently analyzing chart data by adopting a natural language, the problem of large-scale data processing and analysis requirements is solved, the efficiency and accuracy of data analysis are improved, a visual configuration mode is adopted, various chart components are integrated, the repeated and inevitable workload required by developers is reduced, and the development cost is reduced. And a visual configuration mode improves user experience and realizes real-time optimization response.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of big data analysis, and in particular to a method and system for visualizing chart configuration based on chart recommendation. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the development of big data technology, the amount of data that needs to be processed and analyzed is increasing. Data visualization analysis refers to the process of statistically analyzing massive amounts of data and obtaining visualization charts, so that business personnel can discover the potential business value of data from visualization charts.

[0004] At present, in the process of developing analytical charts, traditional data analysis chart methods cannot adapt to the processing and analysis needs of large-scale data, and a large amount of manpower is required for customized development to obtain visualization pages. The development workload is cumbersome, highly repetitive, inefficient and has high technical requirements for developers, resulting in high development costs; or using business intelligence software to generate visualization pages through templates and data source configurations, but there will be problems such as insufficient granularity of templates and low flexibility, and traditional data analysis chart methods usually lack interactivity, and users cannot freely operate and query charts, resulting in poor user experience. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a chart configuration visualization method and system based on chart recommendation, which solves the problem of large-scale data processing and analysis needs by intelligently recommending charts and using natural language to intelligently analyze chart data, improves the efficiency and accuracy of data analysis, and adopts a visual configuration method to integrate various chart components, thereby reducing the repetitive and inevitable workload of developers and lowering the technical requirements of personnel. The visual configuration mode increases user experience and realizes real-time optimization response.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a method for visualizing a chart configuration based on chart recommendation, comprising:

[0008] Obtain target data and data analysis intentions;

[0009] According to the data analysis intention, the pre-trained language model optimized by prompt word engineering is used to recommend chart types and select target charts;

[0010] Visually configure the attribute parameters of the target chart;

[0011] According to the target chart and its configured attribute parameters, a visual analysis chart is generated for the target data, and according to the received user query instructions, the visual analysis chart is parsed and the corresponding query results are fed back.

[0012] As an optional implementation, if the data analysis intention is to display the distribution of target data, a histogram or box plot is recommended; if the data analysis intention is to display the changing trend of target data over time, a line chart or area chart is recommended; if the data analysis intention is to display the comparison between multiple categories, a bar chart or pie chart is recommended.

[0013] As an optional implementation, the property parameters of the visualization configuration include adjusting colors, fonts, labels, legends, and coordinate axes, or adding mouse hover prompts and data filtering functions.

[0014] As an optional implementation, the process of using a pre-trained language model optimized and improved by prompt word engineering includes: extracting features of the target data according to data analysis intent and data analysis performance indicators, selecting the most relevant features in the target data based on the extracted features, thereby constructing an initial model, and initializing training parameters, until the model loss rate no longer decreases, stopping training, and optimizing and improving through the Prompt optimization method to adapt to changes in user needs.

[0015] As an optional implementation, during the training process, a trainable rank decomposition matrix is ​​injected into each layer of the model structure to reduce the number of trainable parameters required for downstream tasks and keep the model frozen for training.

[0016] As an optional implementation, the process of parsing a visual analysis chart and feeding back corresponding query results includes: using natural language processing technology to parse user query instructions, identifying the type of visual analysis chart, and extracting key feature information including data points, trend lines, and labels from the visual analysis chart, and based on the key feature information, searching for entities and relationships related to the user query instructions from the visual analysis chart.

[0017] In a second aspect, the present invention provides a chart configuration visualization system based on chart recommendation, comprising:

[0018] An acquisition module, configured to acquire target data and data analysis intentions;

[0019] A recommendation module is configured to recommend chart types and select target charts based on data analysis intent using a pre-trained language model optimized by prompt word engineering;

[0020] A configuration module, configured to perform visual configuration of attribute parameters of a target chart;

[0021] The interactive module is configured to generate a visual analysis chart for the target data according to the target chart and its configured attribute parameters, and to parse the visual analysis chart and feed back corresponding query results according to the received user query instructions.

[0022] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method described in the first aspect is performed.

[0023] In a fourth aspect, the present invention provides a computer-readable storage medium for storing computer instructions, wherein when the computer instructions are executed by a processor, the method described in the first aspect is performed.

[0024] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method described in the first aspect.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] The method of the present invention utilizes artificial intelligence to intelligently recommend charts that are strongly related to the business and uses natural language to intelligently analyze data during the development process of the zero-code development platform. The method solves the problem that traditional data analysis charts cannot adapt to the processing and analysis needs of large-scale data by intelligently recommending data analysis charts through large models, improves the efficiency and accuracy of data analysis, adopts a visual configuration method, integrates various chart components, and has simple and intuitive operation. There is no need to have an in-depth understanding of the complex code structure, reduces the repetitive and inevitable workload of developers, reduces personnel technical requirements, and reduces costs. The visual configuration mode increases user experience and improves ease of use, solves the problem that traditional data analysis chart methods lack interactivity, and achieves real-time optimization response.

[0027] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0029] Figure 1 A flow chart of a method for visualizing chart configuration based on chart recommendation provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0031] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0032] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "comprise" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0034] Example 1

[0035] like Figure 1 As shown, this embodiment provides a chart configuration visualization method based on chart recommendation, adopts artificial intelligence methods to recommend charts and generate charts in related fields, adopts natural language intelligent analysis of data, improves the efficiency and accuracy of data analysis, and enhances user experience.

[0036] Specifically include:

[0037] Obtain target data and data analysis intentions;

[0038] According to the data analysis intention, the pre-trained language model optimized by prompt word engineering is used to recommend chart types and select target charts;

[0039] Visually configure the attribute parameters of the target chart;

[0040] According to the target chart and its configured attribute parameters, a visual analysis chart is generated for the target data, and according to the received user query instructions, the visual analysis chart is parsed and the corresponding query results are fed back.

[0041] In this embodiment, a dashboard is first added, a data source is selected, which can be a data model, a text file, etc., and the target data is determined; a data model is used to describe, organize and operate data, and is a description of the characteristics of real-world data. The three elements that constitute a data model are: data structure, data operation and data integrity constraints.

[0042] Then, the BERT big model is used to intelligently recommend charts. The BERT big model uses the prompt optimization method to train the model based on the analysis intention of the target data, so as to intelligently recommend the appropriate chart type based on the trained model.

[0043] Among them, if you need to show the distribution of target data, a histogram or box plot is recommended; if you need to show the changing trend of target data over time, a line chart or area chart is recommended; if you need to show the comparison between multiple categories, a bar chart or pie chart is recommended.

[0044] Among them, the Big Language Model is an artificial intelligence model designed to understand and generate human language. It is trained on a large amount of text data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, etc. BERT (Bidirectional Encoder Representations from Transformers) is a pre-trained language model that uses the Transformer architecture to handle natural language processing tasks. It can learn from a large amount of text data through unsupervised learning, and can then be used on various downstream tasks through fine-tuning.

[0045] In this embodiment, the use of the pre-trained language model optimized and improved by prompt word engineering mainly includes the following steps.

[0046] (1) Collect large amounts of data through databases, APIs, files, etc., and clean, convert, and standardize the data to eliminate noise and outliers in the data and ensure data quality and consistency.

[0047] (2) Extract features from the target data based on the data analysis intent, target data, and data analysis performance indicators (such as employment rate), and select the most relevant features in the target data (such as the number of employed people, total number of people) based on the extracted features.

[0048] (3) In the model design stage, select a model structure suitable for the recommendation chart, such as e-commerce website, marketing promotion, CRM; in the model training stage, use large-scale data to train the model and continuously optimize the model parameters and recommendation algorithm; specifically:

[0049] First, a model is constructed based on the features obtained in step (2), and the training parameters of the model are initialized, such as the optimizer is gradient descent and the learning rate is 0.001. After each round of training, the model training parameters will change. As the number of training rounds increases, the model loss rate will continue to decrease. When the model loss rate no longer decreases, the training is stopped, and the target model is finally obtained.

[0050] In addition, a trainable rank decomposition matrix is ​​injected into each layer of the model structure to reduce the number of trainable parameters required for downstream tasks. The decomposition injection method keeps the model frozen for training. This method can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times.

[0051] (4) Optimize and improve through prompt word engineering (prompt optimization method) to better adapt to changes in user needs and achieve real-time, personalized recommendations.

[0052] In natural language processing (NLP) and text generation tasks, a "prompt" is usually a piece of text that prompts the model to generate the corresponding output. For example, in a text generation model, given a "prompt" sentence, the model will generate subsequent text based on the theme, style, or structure of the sentence, which is common in generating dialogues, stories, poems, etc. In the training process of machine learning models, "prompt" can also refer to a specific input format or task description used to guide the model to learn specific knowledge or skills. For example, in an image classification task, providing the model with labeled images as "prompts" can help the model learn to recognize different types of images.

[0053] Natural Language Processing (NLP) is an important branch of artificial intelligence, which aims to enable computers to understand and process human language. NLP uses theories and methods from multiple disciplines such as linguistics, computer science, and artificial intelligence to analyze and generate natural language texts through computer programs. NLP technology includes lexical analysis, syntactic analysis, semantic understanding, information extraction, machine translation, sentiment analysis, question-answering systems, and other aspects.

[0054] (5) Finally, graph technology is used to optimize the logical reasoning ability of the large model framework, expand its original knowledge boundaries, and improve the low success rate of self-correction of the large model, so that the generated graphs can be flexible, open, and accurate.

[0055] Graph technology refers to all technologies that study the relationships between things in the human world, describe, characterize, analyze and calculate the relationships between things. It is used to extract valuable knowledge or rules from graph data to guide business decisions, such as risk assessment, event tracing, causal reasoning and impact analysis.

[0056] In this embodiment, the corresponding attribute parameters are configured according to the selected target chart, including adjusting the color, font, label, legend, coordinate axis, etc., to make the chart clearer and easier to understand; at the same time, the chart can also be interactively designed as needed, such as adding mouse hover prompts, data filtering and other functions.

[0057] In this embodiment, a visual analysis chart is generated according to the selected target chart and the configured attribute parameters, and then the generated visual analysis chart is analyzed and interpreted by natural language intelligent data analysis technology.

[0058] First, identify the types of visual analysis charts, including histograms, box plots, bar charts, area charts, line charts, pie charts, etc., and extract key feature information from visual analysis charts, including data points, trend lines, labels, etc.;

[0059] Then, natural language processing technology is used to parse and analyze the user's query instructions, which involves semantic understanding, entity recognition, sentiment analysis, etc.

[0060] Finally, knowledge graph technology is combined to achieve matching between graphs and natural language.

[0061] Among them, the user's query instruction may be a query about specific data in the visual analysis chart, or it may be a request to explain a certain trend or pattern in the visual analysis chart, so by combining natural language processing technology and knowledge graph technology. For example, when a user asks a query or question in natural language, NLP technology is first used to parse and understand the query instruction, and then the entities and relationships related to the query instruction are found in the knowledge graph, and this information is answered to the user in the form of natural language.

[0062] Natural language intelligent analysis data refers to the process of parsing, understanding and analyzing text data using natural language processing (NLP) technology. NLP is an artificial intelligence technology that aims to enable computers to understand and process human language, thereby realizing intelligent analysis of text data. Natural language intelligent analysis data provides a powerful tool for the processing and analysis of text data, enabling machines to understand human language more deeply and helping humans to obtain valuable information from massive text data.

[0063] In this embodiment, user feedback can also be collected to understand user satisfaction and needs for charts, and the model can be repeatedly trained, optimized and improved based on the feedback to improve the quality of the chart and user experience.

[0064] A zero-code development platform is a platform that allows users to create applications without writing code. It provides a visual interface and pre-built modules, allowing users to create applications by dragging, dropping, selecting, and configuring without writing any code. It is suitable for users who have no programming experience or do not want to write code themselves. It is usually used to quickly build prototypes, create simple applications, or automate business processes.

[0065] The method of this embodiment adopts a visual configuration mode, and through a concise and clear page design, users can quickly get started, the operation is simple and intuitive, and what users see is what they get on the visual interface without in-depth understanding of complex code structures, thereby improving convenience of use and user experience.

[0066] The method of this embodiment uses artificial intelligence to intelligently recommend charts that are strongly related to the business during the development process of the zero-code development platform, and uses natural language intelligent analysis of data to improve the efficiency and accuracy of data analysis. In simple business scenarios, the chart development time can be shortened by about 80%. At the same time, zero-code development can also help business personnel complete tasks easily, directly saving the communication time and cost between business personnel and developers. The visual configuration mode increases the user experience and realizes real-time optimization response. Even complex business scenarios can configure chart parameters after recommendation, truly realizing the completion of development tasks without the need for developers and meeting user needs.

[0067] It should be noted that all data is obtained in compliance with laws and regulations and user consent, and the data is used legally.

[0068] Example 2

[0069] This embodiment provides a chart configuration visualization system based on chart recommendation, including:

[0070] An acquisition module, configured to acquire target data and data analysis intentions;

[0071] A recommendation module is configured to recommend chart types and select target charts based on data analysis intent using a pre-trained language model optimized by prompt word engineering;

[0072] A configuration module, configured to perform visual configuration of attribute parameters of a target chart;

[0073] The interactive module is configured to generate a visual analysis chart for the target data according to the target chart and its configured attribute parameters, and to parse the visual analysis chart and feed back corresponding query results according to the received user query instructions.

[0074] It should be noted that the above modules correspond to the steps described in Example 1, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above Example 1. It should be noted that the above modules, as part of the system, can be executed in a computer system such as a set of computer executable instructions.

[0075] In further embodiments, there is also provided:

[0076] An electronic device includes a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method described in Embodiment 1 is performed. For the sake of brevity, it will not be described in detail here.

[0077] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0078] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0079] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the method described in Example 1 is completed.

[0080] The method in Example 1 can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it is not described in detail here.

[0081] A computer program product includes a computer program, and when the computer program is executed by a processor, the method described in embodiment 1 is implemented.

[0082] The present invention also provides at least one computer program product tangibly stored on a non-transitory computer-readable storage medium. The computer program product includes computer executable instructions, such as instructions included in a program module, which are executed in a device on a real or virtual processor of the target to perform the process / method as described above. Typically, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform specific tasks or implement specific abstract data types. In various embodiments, the functions of program modules can be combined or divided between program modules as needed. Machine executable instructions for program modules can be executed in local or distributed devices. In distributed devices, program modules can be located in local and remote storage media.

[0083] The computer program code for implementing the method of the present invention can be written in one or more programming languages. These computer program codes can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the computer or other programmable data processing device, causes the function / operation specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on a computer, partially on a computer, as an independent software package, partially on a computer and partially on a remote computer or completely on a remote computer or server.

[0084] In the context of the present invention, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like. Examples of signals may include electrical, optical, radio, acoustic or other forms of propagation signals, such as carrier waves, infrared signals, and the like.

[0085] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. 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.

[0086] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for visualizing a chart configuration based on chart recommendation, characterized in that: include: Obtain target data and data analysis intentions; According to the data analysis intention, the pre-trained language model optimized by prompt word engineering is used to recommend chart types and select target charts; Visually configure the attribute parameters of the target chart; According to the target chart and its configured attribute parameters, a visual analysis chart is generated for the target data, and according to the received user query instructions, the visual analysis chart is parsed and the corresponding query results are fed back.

2. A method for visualizing a chart configuration based on chart recommendation according to claim 1, characterized in that: If the data analysis intention is to show the distribution of the target data, a histogram or box plot is recommended; if the data analysis intention is to show the changing trend of the target data over time, a line chart or area chart is recommended; if the data analysis intention is to show the comparison between multiple categories, a bar chart or pie chart is recommended.

3. A method for visualizing a chart configuration based on chart recommendation according to claim 1, characterized in that: The property parameters of visualization configuration include adjusting colors, fonts, labels, legends and axes, or adding mouse hover tips and data filtering functions.

4. The method for visualizing a chart configuration based on chart recommendation according to claim 1, characterized in that: The process of using the pre-trained language model optimized and improved by prompt word engineering includes: extracting features of the target data according to the data analysis intention and data analysis performance indicators, selecting the most relevant features in the target data based on the extracted features, thereby building an initial model, and initializing the training parameters until the model loss rate no longer decreases. Training is stopped, and optimization and improvement are performed through the prompt optimization method to adapt to changes in user needs.

5. A method for visualizing a chart configuration based on chart recommendation according to claim 4, characterized in that: During training, a trainable rank factorization matrix is ​​injected into each layer of the model structure to reduce the number of trainable parameters required for downstream tasks and keep the model frozen for training.

6. A method for visualizing a chart configuration based on chart recommendation according to claim 1, characterized in that: The process of parsing a visual analysis chart and feeding back corresponding query results includes: using natural language processing technology to parse user query instructions, identifying the type of visual analysis chart, and extracting key feature information including data points, trend lines and labels from the visual analysis chart, and based on the key feature information, searching for entities and relationships related to the user query instructions from the visual analysis chart.

7. A chart configuration visualization system based on chart recommendation, characterized in that: include: An acquisition module, configured to acquire target data and data analysis intentions; A recommendation module is configured to recommend chart types and select target charts based on data analysis intent using a pre-trained language model optimized by prompt word engineering; A configuration module, configured to perform visual configuration of attribute parameters of a target chart; The interactive module is configured to generate a visual analysis chart for the target data according to the target chart and its configured attribute parameters, and to parse the visual analysis chart and feed back corresponding query results according to the received user query instructions.

8. An electronic device, characterized in that: The method comprises a memory and a processor and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method according to any one of claims 1 to 6 is completed.

9. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, complete the method described in any one of claims 1 to 6.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.