Visual output method, device, equipment and medium of artificial intelligence model

Through technologies such as intelligent parsing engines, generative adversarial networks, and Bayesian networks, it solves programming language data format conversion and security issues, achieves efficient data processing and display, and improves system compatibility and user experience.

CN118550524BActive Publication Date: 2024-10-15INST OF GEOGRAPHIC SCI HEBEI ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411018010.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-15
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

The existing technology cannot automatically identify and convert data formats in different programming languages, lacks data filtering and filtering functions, and data security cannot be guaranteed, resulting in low display efficiency, poor compatibility, and high maintenance costs for C++ development applications.

Method used

Use an intelligent parsing engine to automatically identify data formats, build an adaptive data conversion model, use a generative adversarial network to generate structured intermediate data, build a Bayesian network for data matching and filtering, and introduce blockchain technology to ensure data security and transparency. , combining cloud computing and edge computing to achieve efficient storage and access.

Benefits of technology

It achieves adaptive conversion of data formats, improves system compatibility and scalability, reduces development difficulty and maintenance costs, provides a more intuitive user experience, and significantly improves data security and system response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550524B_ABST
    Figure CN118550524B_ABST
Patent Text Reader

Abstract

The present application discloses a visualization output method, device, equipment and medium of an artificial intelligence model, which belongs to the field of artificial intelligence visualization technology. The visualization output method includes: step S1, receiving the first programming language representation data output by the artificial intelligence model, and using the intelligent parsing engine model to automatically identify and parse the data format; step S2, building an adaptive data conversion model, learning the conversion rules between different programming languages, so as to convert the parsed data from the first programming language format to the second programming language format; step S3, based on the converted data, using a generative adversarial network to generate structured intermediate data; step S4, building a Bayesian network, screening out the most relevant data through a probabilistic inference method, and matching according to the inference results; step S5, introducing blockchain technology to ensure the security and transparency of data updates and displays; step S6, combining cloud computing and edge computing technologies to achieve efficient storage and access to data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence visualization technology, and more specifically, to a visualization output method, device, equipment and medium for an artificial intelligence model. Background Art

[0002] Artificial Intelligence (AI) is an important development direction in the field of information technology. With the continuous advancement of information technology, more and more applications are becoming intelligent through AI models. At present, in applications developed in C++, the C++ programming language is usually used to set post-processing code according to display configuration information, convert the output results of the AI ​​model into display results, and present them on the interface of the display device. However, when the output data type of the AI ​​model changes or the display configuration information changes, the post-processing code needs to be modified or recompiled, which results in low display efficiency of applications developed in C++.

[0003] The document with the prior art publication number CN117406965A proposes a method, device, equipment and medium for visual output of an artificial intelligence model. The method receives a model output based on a first programming language, converts it into intermediate data in a second programming language, supports multiple AI model formats, and uniformly converts it into an ONNX format available to the application module. The converted input data can be used for model training, and the visual output device includes a receiving, converting and determining unit for receiving the model output, converting it into a display page format, and determining the display content based on the configuration. The method supports the application to load the display configuration in real time, so that the user can interact with the AI ​​model directly on the display page, thereby improving the visualization efficiency and compatibility of the AI ​​model output results, simplifying the development and maintenance of the application, and improving the user experience.

[0004] Although the above-mentioned prior art provides a method for visual output of an artificial intelligence model, it only considers a single first programming language and is unable to automatically identify and convert the data format of the first programming language into the format of a second programming language, nor is it able to automatically convert the data in the second programming language format into a visual interface. It lacks data screening and filtering functions, and data security cannot be guaranteed.

[0005] In view of this, the present application proposes a method, device, equipment and medium for visual output of an artificial intelligence model. Summary of the invention

[0006] In order to overcome a series of defects in the prior art, the purpose of this application is to provide a visualization output method of an artificial intelligence model to address the above problems, including the following steps.

[0007] Step S1, receiving data expressed in a first programming language output by an artificial intelligence model, and using an intelligent parsing engine model to automatically identify and parse the data format.

[0008] Step S2, constructing an adaptive data conversion model, learning conversion rules between different programming languages, so as to convert the parsed data from the first programming language format to the second programming language format.

[0009] Step S3, based on the converted data, generate structured intermediate data using a generative adversarial network.

[0010] Step S4, constructing a Bayesian network, filtering out the most relevant data through a probabilistic inference method, and matching based on the inference results.

[0011] Step S5, introduce blockchain technology to ensure the security and transparency of data updating and display.

[0012] Step S6, combining cloud computing and edge computing technologies to achieve efficient storage and access of data.

[0013] As an optional solution of the present application, the intelligent parsing engine model includes a preprocessing layer, a feature extraction layer and a format recognition layer, wherein: the preprocessing layer is used to preprocess the original data, including removing irrelevant characters, standardizing code formats and word segmentation; the feature extraction layer is used to extract word frequency statistics, grammatical structure features and syntax tree structures from the preprocessed data, the word frequency statistics are calculated for the number of times each word appears in the code, the grammatical structure features are determined by analyzing whether the brackets in the source code are correctly paired and their nesting levels through a stack data structure, and the syntax tree structure is obtained by converting the source code into an abstract syntax tree using the parsing technology in the compiler principles; the format recognition layer inputs the extracted features into a long short-term memory network to identify programming language characteristics and parse data formats.

[0014] As an optional solution of this application, the core formula of the long short-term memory network is: T =σ(W HH H T-1 +W xH x T +b H ), y T =softmax(W Hy H T +b y ), H T represents the hidden state at time step T, H T-1 represents the hidden state of the previous time step T-1, x T is the input of the current time step, σ is the activation function (such as tanh or ReLU), W HH ,W xH ,WHy is the weight matrix, b h ,b y is the bias term, y T is the prediction result of the output layer.

[0015] As an optional solution of the present application, the adaptive data conversion model adopts a deep learning architecture, combined with a long short-term memory network and an attention mechanism, wherein: in the input layer, the output data of the artificial intelligence model is received in the form of a first programming language, and the input data is preprocessed; an encoder-decoder architecture is adopted in the middle, and the encoder encodes the structure of the input data into a continuous vector form, including an embedding layer and a multi-layer LSTM layer, and an attention mechanism is applied to the output of the encoder so that the decoder pays attention to different parts of the input when generating the output. The attention mechanism is implemented by calculating a weighted context vector c~, and the weight α t According to the correlation between the current state of the decoder and the state of the encoder, the attention weight calculation formula is: α t = softmax(w h Z tanh(Vh t d + Uh t e )), the weighted context vector calculation formula is: c~ t =∑α t c t e , where w h Z represents the row vector w h The transpose of h t d is the hidden state of the decoder at time step t, h t e is the hidden state of the encoder at time step t, w, V, U are model parameters; based on the context vector generated by the encoder and its own hidden state, the decoder begins to gradually generate the data structure of the second programming language. The decoder's hidden state combines the information obtained by the attention mechanism to predict the next symbol. The calculation formula is: t d = LSTM([c~,h t-1 d ],y t-1 ), where y t-1 is the output of the previous time step, [.] is the concatenation operation; after each decoding step, a symbol is output until a complete second programming language representation is generated or the termination condition is reached; in the output layer, the final output of the decoder is mapped to the vocabulary space of the second programming language through the softmax layer to determine the output symbol; during training, the cross entropy loss is used to measure the difference between the predicted sequence and the true sequence.

[0016] As an optional solution of the present application, the hidden state calculation formula of the encoder is: t = LSTM(x t , h t-1 ), where x t is the input vector of the current time step, h t-1 is the hidden state at the previous time step, and the encoder generates a vector or sequence, called a “context vector”, to capture the semantic information of the input data.

[0017] As an optional solution of the present application, step S3 uses a generative adversarial network to construct an intermediate data generation model to generate structured intermediate data. The intermediate data generation model includes a generator G and a discriminator D. The generator G is trained to generate structured data close to the real data distribution. The intermediate data generation model receives the conversion result from step S2 and the display configuration information to guide how to organize and layout the data. The objective function of the intermediate data generation model is defined as: min G max D V(D,G)=E x-pdata (x)[logD(x)]+E z-pz (z)[log(1-D(G(z)))], where p data (x) represents the distribution of real data, p z (z) represents the distribution of noise data, and a mapping relationship is used to convert the data type in the first intermediate data into the type required by the display page; the process of the generator G generating data is expressed as G(z)=G model (z), the discriminator D’s discriminant process is expressed as D(G(z))=D model (G(z)), where G(z) represents the generated data and D(G(z)) represents the discrimination result of the discriminator; according to the display style and size information, the generated data G(z) is further structured into specific display data, specifically expressed as SD=h(G(z),S′), where SD represents the structured display data and S′ represents the style details in the display configuration; the display page is controlled to present the output according to the structured data SD, and a specific UI framework or API is called to render the elements, thereby realizing the visual display of the output results of the artificial intelligence model.

[0018] As an optional solution of the present application, step S4 includes the following steps.

[0019] Abstract user needs into a set of discrete or continuous variables U, each variable u iReflect a specific demand; at the same time, collect the configuration parameters of the current display page to form another set of variables, extract key features from the determined display data, so as to match with user demand and display configuration.

[0020] The extracted features are preprocessed, including standardization, normalization, and missing value filling operations, to improve data quality and consistency.

[0021] Construct a Bayesian network B=(N,E), where N={N1,N2,...,N k} represents a node set, each node N i Corresponding to a data feature, E={(N i ,N j )|N i →N j} represents a set of directed edges, indicating the dependency relationship between features.

[0022] The user demand U and display configuration C are input into the Bayesian network as evidence, and the Bayesian inference algorithm is used to calculate the posterior probability distribution P(N i |U,C),P(N i |U,C) means that under the conditions of user demand U and display configuration C, node N i The posterior probability distribution of .

[0023] Based on the calculated posterior probability distribution, the matching algorithm σ is used to match the data and calculate the similarity score. The specific formula is: Sim = σ (F preprocessed ,U,C), where F preprocessed represents the preprocessed feature set, and Sim represents the similarity score.

[0024] Filter the data according to the similarity score and the preset threshold τ, select the data item with the highest matching degree as the final display data, and form the filtered data set D filtered ={d ^ ∈D display |Sim(d,U,C)≥τ}, where D display Indicates the data set currently available for display, d ^ Indicates D display A single data item in filtered Represents a filtered data set.

[0025] Dynamically update the parameters and structure of the Bayesian network based on real-time input user requirements and display configuration.

[0026] The reinforcement learning algorithm is used to optimize the parameters and structure of the Bayesian network. The model is adjusted by maximizing the expected reward E[R(θ)] to improve the matching and filtering effects. The optimization target is expressed as: θ ^ =argmax θ E[R(θ)], where θ represents the parameters of the Bayesian network and R represents the reward function; θ ^ Represents the optimal parameters to be found.

[0027] As an optional solution of the present application, in step S5, the data is converted from the original output of the artificial intelligence model based on the first programming language to the first intermediate data based on the second programming language, and then to the final structured intermediate data, i.e., display data. The above conversion process and its results will be recorded as transactions on the blockchain; any adjustment to the display configuration information will also be regarded as a new transaction on the blockchain, ensuring that the configuration history is traceable and cannot be changed; each participating node will confirm the validity of the data update to ensure that only verified data changes are added to the blockchain, thereby ensuring the accuracy of data display; the openness and immutability of the blockchain allow authorized users to trace each transaction and view the evolution of the data from its original state to the final display form, significantly enhancing the transparency and credibility of the system.

[0028] The purpose of this application is also to provide a visualization output device of an artificial intelligence model, including the following modules.

[0029] The parsing module is used to receive the output data of the artificial intelligence model and use the intelligent parsing engine to automatically identify and parse the data format.

[0030] The data conversion module is used to convert the parsed data into other programming language formats.

[0031] The data generation and screening module uses the generator G in the generative adversarial network to generate candidate data based on the noise data, and uses the discriminator D to screen out the structured intermediate data that meets the display configuration information.

[0032] The matching and filtering module is used to match and filter user requirements and display configurations with structured data to select the data items with the highest matching degree as the final display data.

[0033] The blockchain data security module uses blockchain technology to ensure the consistency and immutability of data between nodes, enhances the security and credibility of data, and provides data traceability by recording historical information of data conversion and display configuration.

[0034] The cloud-edge collaborative storage access module combines the powerful computing and storage capabilities of cloud computing and the low-latency characteristics of edge computing to achieve efficient storage and fast access to data; at the same time, by combining centralized cloud management and processing with distributed processing on edge nodes, it reduces network latency and improves response speed and overall efficiency.

[0035] The purpose of the present application is also to provide a visualization output device for an artificial intelligence model, comprising a processor, a memory and a communication interface, wherein the memory stores a computer program, and the processor implements the visualization output method of the above-mentioned artificial intelligence model when executing the computer program.

[0036] The purpose of the present application is also to provide a medium, in which a computer program is stored, and when the computer program is executed by a processor, the visualization output method of the above-mentioned artificial intelligence model is implemented.

[0037] Compared with the prior art, the present application has the following beneficial effects.

[0038] 1) This application realizes adaptive conversion of data formats by integrating intelligent parsing engines and deep learning models, thereby eliminating the tedious process of modifying post-processing codes due to changes in data types or display configurations; it also supports multiple AI model formats and programming languages, and can uniformly convert model outputs in different formats and languages ​​into a standard format that can be used by application modules, greatly improving the compatibility and scalability of the system.

[0039] 2) This application significantly reduces the difficulty of application development and maintenance costs by automatically processing and converting the output data of the AI ​​model, allowing each developer to focus on the implementation of business logic without having to pay attention to the underlying data format and conversion logic, thereby improving development efficiency.

[0040] 3) This application supports real-time loading of display configuration and allows users to interact directly with the AI ​​model on the interface, providing users with a more intuitive and personalized experience and effectively improving user satisfaction.

[0041] 4) In terms of data security, this application introduces blockchain technology to ensure the consistency and immutability of data among nodes, while providing data traceability functions, enhancing the transparency and auditability of the system, and significantly improving the security and credibility of data.

[0042] 5) This application combines cloud computing and edge computing technologies to achieve efficient storage and access of data. By centrally managing and processing core data and delegating some data processing tasks to the edge of the network, network latency is effectively reduced and the overall response speed of the system is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A flowchart of a method for visual output of an artificial intelligence model provided in accordance with an embodiment of the present application.

[0044] Figure 2 A schematic diagram of the structure of a visual output device for an artificial intelligence model provided in one embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical scheme and advantages of the implementation of the present invention clearer, the technical scheme in the embodiment of the present invention will be described in more detail below in conjunction with the drawings in the embodiment of the present invention. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of the present invention, not all of the embodiments.

[0046] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.

[0047] The embodiments and directional terms described below with reference to the accompanying drawings are exemplary and intended to be used to explain the present invention, but should not be construed as limiting the present invention.

[0048] Please refer to Figure 1 , a visualization output method of an artificial intelligence model includes the following steps.

[0049] Step S1, receiving data expressed in a first programming language output by an artificial intelligence model, and using an intelligent parsing engine model to automatically identify and parse the data format.

[0050] Step S2, constructing an adaptive data conversion model, learning conversion rules between different programming languages, and converting the parsed data from the first programming language format to the second programming language format.

[0051] Step S3, based on the converted data, generate structured intermediate data using a generative adversarial network model.

[0052] Step S4, constructing a Bayesian network, filtering out the most relevant data through a probabilistic inference method, and matching based on the inference results.

[0053] Step S5, introduce blockchain technology to ensure the security and transparency of data updating and display.

[0054] Step S6, combining cloud computing and edge computing technologies to achieve efficient storage and access of data.

[0055] Furthermore, the first programming language is C++ or Python, and the second programming language is JavaScript or HTML.

[0056] Further, in step S1, the output data of the artificial intelligence model is represented by a first programming language; the intelligent parsing engine model includes a preprocessing layer, a feature extraction layer and a format recognition layer, wherein: the preprocessing layer preprocesses the original data, including removing irrelevant characters, standardizing the code format (such as unified indentation, space processing, etc.) and word segmentation; the feature extraction layer extracts the following features from the preprocessed data: word frequency statistics, grammatical structure features and syntactic tree structure, wherein the word frequency statistics calculate the number of times each word (such as keywords, identifiers, operators) appears in the code, and the grammatical structure features are determined by analyzing the correct pairing and nesting levels of brackets (such as round brackets, curly brackets, square brackets) in the source code through a stack data structure. Specifically, when traversing the code, an open bracket is pushed into the stack, and a closed bracket is checked to see if it matches the top of the stack and popped out of the stack, so as to count the complexity or errors of the use of brackets, and at the same time count the number of times keywords (such as if, for, class, etc.) of a specific programming language appear; the syntactic tree structure uses the parsing technology in the compiler principle (such as LL, LR parsing algorithm or recursive descent parsing) to convert the source code into an abstract syntax tree (AST) to obtain. After feature extraction, these structured or unstructured information are converted into vector forms that can be processed by machine learning models. For example, for syntactic trees, tree traversal techniques (such as depth-first search DFS and breadth-first search BFS) can be used to generate fixed-length feature vectors. The format recognition layer inputs the extracted features into the long short-term memory network LSTM to identify programming language features and parse data formats. The core formula of the long short-term memory network is: H T =σ(W HH H T-1 +W xH x T +b H ), y T =softmax(W Hy H T +b y ), H T represents the hidden state at time step T, H T-1 represents the hidden state of the previous time step T-1, x T is the input of the current time step, σ is the activation function (such as tanh or ReLU), W HH ,W xH ,W Hy is the weight matrix, b h ,b y is the bias term, y Tis the prediction result of the output layer. When training, the intelligent parsing engine model collects a large number of code samples in different programming languages, correctly annotates them and divides them into training sets and test sets. The long short-term memory network LSTM is trained using the above features and training sets. The model parameters are adjusted through cross-validation, grid search and other methods, and the feature combination is optimized to improve recognition accuracy. The model performance is evaluated using the test set. After training, the long short-term memory network is integrated into the intelligent parsing engine model. When new data is received, the intelligent parsing engine model uses the long short-term memory network LSTM to predict the programming language type and structure of the data after preprocessing and feature extraction steps, and finally outputs the parsing result.

[0057] Furthermore, step S2 uses an adaptive data conversion model to perform data conversion. The model is based on the parsed data format and the second programming language format, and learns the conversion rules and mapping relationships between different programming languages ​​through a large amount of training data to achieve automatic data conversion. In this step, the parsed data is converted from the first programming language format to the second programming language format to meet the interface display requirements of the display device. The adaptive data conversion model adopts a deep learning architecture, combined with a long short-term memory network LSTM and an attention mechanism. At the input layer, the output data (e.g., arrays, dictionaries, or tensors) of the artificial intelligence model are received in the form of a first programming language (C++), and the input data is preprocessed as necessary, such as normalization, standardization, or tokenization. The middle layer adopts an encoder-decoder architecture, in which the encoder encodes the structure of the input data into a continuous vector form, including an embedding layer and a multi-layer LSTM layer. The encoder's hidden state calculation formula is: h t =LSTM(x t , h t-1 ), where x t is the input vector of the current time step, h t-1 is the hidden state of the previous time step. The encoder generates a vector or sequence, called a "context vector", to capture the semantic information of the input data. An attention mechanism is applied to the output of the encoder so that the decoder pays attention to different parts of the input when generating the output. The attention mechanism is implemented by calculating the weighted context vector c~, with weight α t According to the correlation between the current state of the decoder and the state of the encoder, the attention weight calculation formula is: α t = softmax(w h Z tanh(Vh t d + Uh t e )), the weighted context vector calculation formula is: c~ t =∑α t c te , where w h Z represents the row vector w h The transpose of h t d is the hidden state of the decoder at time step t, h t e is the hidden state of the encoder at time step t, w, V, U are model parameters; based on the context vector generated by the encoder and its own hidden state, the decoder begins to gradually generate the data structure of the second programming language. The decoding process involves a recurrent neural network. The decoder's hidden state combines the information obtained by the attention mechanism to predict the next symbol. The calculation formula is: t d = LSTM([c~,h t-1 d ],y t-1 ), where y t-1 is the output of the previous time step, and [.] is the concatenation operation; after each decoding step, a symbol is output until a complete second programming language representation is generated or the termination condition is reached; in the output layer, the final output of the decoder is mapped to the vocabulary space of the second programming language through the softmax layer to determine the most likely output symbol; during training, the cross entropy loss is used to measure the difference between the predicted sequence and the true sequence.

[0058] Furthermore, step S3 aims to generate structured intermediate data. This step is based on the data structure that has been converted into a second programming language (such as QML or JavaScript), and further generates display data that matches the display configuration information to correctly present the output results of the artificial intelligence model on the display page. This process can be regarded as further processing the first intermediate data into structured intermediate data (display data) that ultimately meets specific display requirements. This step uses generative adversarial networks (GANs) to construct an intermediate data generation model, which includes a generator G and a discriminator D. Through training, the generator G is able to generate structured data that is close to the real data distribution. The intermediate data generation model receives the conversion result from step S2 (i.e., the first intermediate data represented based on the second programming language) and display configuration information, including display style type (such as circle, rectangle), size (coordinates, length, width, height, etc.), and other information to guide how to organize and layout the data. The objective function of the intermediate data generation model is defined as: min G max D V(D,G)=E x-pdata (x)[logD(x)]+E z-pz (z)[log(1-D(G(z)))], where p data (x) represents the distribution of real data, p z(z) represents the distribution of noise data, and uses a mapping relationship to convert the data type in the first intermediate data (such as Array and Object in QML) into the type required for displaying the page (such as HTML elements and CSS styles). The process of the generator G generating data is represented by G(z)=G model (z), the discriminator D’s discriminant process is expressed as D(G(z))=D model (G(z)), where G(z) represents the generated data and D(G(z)) represents the discriminant result. According to the display style and size information, the generated data G(z) is further structured into specific display data, including the setting of attributes such as position, size, and color. This process is expressed as SD=h(G(z),S′), where SD represents the structured display data and S′ represents the style details in the display configuration. The control display page presents the output according to the structured data SD, and calls a specific UI framework or API (such as QML components in the Qt development framework) to render elements, thereby realizing the visualization of the output results of the artificial intelligence model.

[0059] Furthermore, step S4 uses the Bayesian network to match and filter data: First, the user requirements are abstracted into a set of discrete or continuous variables U, each variable u i Reflect a specific demand, such as keyword search, time range or display style preference. At the same time, collect the configuration parameters of the current display page, such as the size of the display area, layout mode, resolution of the display device, etc., to form another set of variables, extract key features from the determined display data to match user needs and display configuration; preprocess the extracted features, including standardization, normalization, missing value filling and other operations to improve data quality and consistency. Then, construct a Bayesian network B=(N,E), where N={N1,N2,...,N k} represents a node set, each node N i Corresponding to a data feature, E={(N i ,N j )|N i →N j} represents a directed edge set, which indicates the dependency relationship between features. User requirements U and display configuration C are input into the Bayesian network as evidence, and the posterior probability distribution P(N i |U,C),P(N i |U,C) means that under the conditions of user demand U and display configuration C, node N i Based on the calculated posterior probability distribution, the matching algorithm σ is used to match the data and calculate the similarity score. The specific formula is: Sim = σ (Fpreprocessed ,U,C), where F preprocessed Represents the preprocessed feature set, Sim represents the similarity score. Filter the data according to the similarity score and the preset threshold τ, select the data item with the highest matching degree as the final display data, and form the filtered data set D filtered ={d ^ ∈D display |Sim(d,U,C)≥τ}, where D display Indicates the data set currently available for display, d ^ Indicates D display A single data item in filtered Represents the filtered data set. To ensure the timeliness and accuracy of the model, the parameters and structure of the Bayesian network are dynamically updated according to the real-time input user needs and display configuration. In addition, the reinforcement learning algorithm is used to optimize the parameters and structure of the Bayesian network, and the model is adjusted by maximizing the expected reward E[R(θ)] to improve the matching and filtering effects. The optimization target is expressed as: θ ^ =argmax θ E[R(θ)], where θ represents the parameters of the Bayesian network, R represents the reward function, and θ ^ Indicates the optimal parameters to be found. In this way, this step can effectively match and filter data according to user needs and display configuration, providing a more personalized and adaptable data display effect.

[0060] Furthermore, step S5 uses blockchain technology to ensure data security. Blockchain technology can ensure the consistency and immutability of data between nodes, effectively prevent data from being maliciously modified or destroyed, and thus maintain its integrity and credibility during data transmission, storage and display. Specifically, the data is converted from the original output of the artificial intelligence model based on the first programming language to the first intermediate data based on the second programming language, and then to the final structured intermediate data, that is, display data. These conversion processes and their results will be recorded as transactions on the blockchain. At the same time, any adjustment of the display configuration information, such as changes in display style or size settings, will also be regarded as new transactions on the blockchain to ensure that the configuration history is traceable and cannot be changed. Through the consensus mechanism of the blockchain, each participating node will confirm the validity of the data update to ensure that only verified data changes are added to the blockchain, thereby ensuring the accuracy of data display. In addition, the openness and immutability of the blockchain allow authorized users to trace each transaction and view the evolution of data from the original state to the final display form, significantly enhancing the transparency and credibility of the system. This blockchain-based data security mechanism not only protects the integrity of the data, but also provides a reliable audit trail for the entire data processing and display process, effectively improving the security and reliability of the system.

[0061] Further, step S6 uses cloud computing and edge computing technology to improve storage and access efficiency. This step combines the powerful computing and storage capabilities of cloud computing with the low latency characteristics of edge computing to achieve optimization of data management and processing. Specifically, cloud computing provides centralized data storage and high-performance computing resources, supports unified management of large-scale data, execution of complex algorithms and global data analysis. At the same time, edge computing delegates some data processing and analysis tasks to network edge devices, processes data nearby, effectively reduces the amount of data transmission, reduces network latency, and improves system response speed. This cloud-edge collaborative architecture not only optimizes data flow, but also realizes dynamic allocation and load balancing of computing resources. In actual application, it can adaptively determine whether tasks are executed in the cloud or at the edge according to data characteristics, processing requirements and network conditions, thereby maximizing resource utilization efficiency. In addition, it also supports hierarchical storage and caching strategies for data, caches high-frequency access data in edge nodes, reduces frequent access to the cloud, and further improves data access speed. Through the synergy of cloud computing and edge computing, this step realizes rapid storage, efficient access and real-time processing of data, significantly improves overall performance, scalability and responsiveness, and provides strong technical support for large-scale data management and complex data analysis.

[0062] like Figure 2 As shown, a visualization output device of an artificial intelligence model includes the following modules.

[0063] The parsing module is used to receive the output data of the artificial intelligence model and use the intelligent parsing engine to automatically identify and parse the data format.

[0064] The data conversion module is used to convert the parsed data into other programming language formats.

[0065] The data generation and screening module uses the generator G in the generative adversarial network to generate candidate data based on the noise data, and uses the discriminator D to screen out the structured intermediate data that meets the display configuration information.

[0066] The matching and filtering module is used to match and filter user requirements and display configurations with structured data to select the data items with the highest matching degree as the final display data.

[0067] The blockchain data security module uses blockchain technology to ensure the consistency and immutability of data between nodes, enhances the security and credibility of data, and provides data traceability by recording historical information of data conversion and display configuration.

[0068] The cloud-edge collaborative storage access module combines the powerful computing and storage capabilities of cloud computing and the low-latency characteristics of edge computing to achieve efficient storage and fast access to data; at the same time, by combining centralized cloud management and processing with distributed processing on edge nodes, it reduces network latency and improves response speed and overall efficiency.

[0069] The present application also provides a visualization output device for an artificial intelligence model, including a processor, a memory and a communication interface, wherein the memory stores a computer program, and the processor implements the visualization output method of the above-mentioned artificial intelligence model when executing the computer program.

[0070] The present application also provides a medium, in which a computer program is stored, and when the computer program is executed by a processor, the visualization output method of the above-mentioned artificial intelligence model is implemented.

Claims

1. A method for visual output of an artificial intelligence model, characterized in that: The following steps are involved: Step S1, receiving data expressed in a first programming language output by an artificial intelligence model, and automatically identifying and parsing the data format using an intelligent parsing engine model; Step S2, construct an adaptive data conversion model, learn the conversion rules between different programming languages, so as to convert the parsed data from the first programming language format to the second programming language format. The adaptive data conversion model adopts a deep learning architecture, combined with a long short-term memory network and an attention mechanism, wherein: in the input layer, the output data of the artificial intelligence model is received in the form of the first programming language, and the input data is preprocessed; in the middle, an encoder-decoder architecture is adopted, and the encoder encodes the structure of the input data into a continuous vector form, including an embedding layer and a multi-layer LSTM layer. An attention mechanism is applied to the output of the encoder so that the decoder pays attention to different parts of the input when generating the output. The attention mechanism is implemented by calculating a weighted context vector c~, and the weight α t According to the correlation between the current state of the decoder and the state of the encoder, the attention weight calculation formula is: α t =softmax(w h Z tanh(Vh t d +Uh t e )), the weighted context vector calculation formula is: c~ t =∑α t c t e , where w h Z represents the row vector w h The transpose of h t d is the hidden state of the decoder at time step t, h t e is the hidden state of the encoder at time step t, w, V, U are model parameters; based on the context vector generated by the encoder and its own hidden state, the decoder begins to gradually generate the data structure of the second programming language. The decoder's hidden state combines the information obtained by the attention mechanism to predict the next symbol. The calculation formula is: t d = LSTM([c~,h t-1 d ],y t-1 ), where y t-1 is the output of the previous time step, [.] is the concatenation operation; after each decoding step, a symbol is output until a complete second programming language representation is generated or the termination condition is reached; in the output layer, the final output of the decoder is mapped to the vocabulary space of the second programming language through the softmax layer to determine the output symbol; during training, the cross entropy loss is used to measure the difference between the predicted sequence and the true sequence; the hidden state calculation formula of the encoder is: t = LSTM(x t , h t-1 ), where x t is the input vector of the current time step, h t-1 is the hidden state of the previous time step, and the encoder generates a vector or sequence, called a "context vector", to capture the semantic information of the input data; Step S3, based on the converted data, using the generative adversarial network to construct an intermediate data generation model to generate structured intermediate data, the intermediate data generation model includes a generator G and a discriminator D, and the generator G is trained to generate structured data close to the real data distribution; the intermediate data generation model receives the conversion result from step S2 and the display configuration information to guide how to organize and layout the data; the mapping relationship is used to convert the data type in the first intermediate data into the type required for the display page; the process of the generator G generating data is expressed as G(z)=G model (z), the discriminator D’s discriminant process is expressed as D(G(z))=D model (G(z)), where G(z) represents the generated data and D(G(z)) represents the discriminant result of the discriminator; according to the display style and size information, the generated data G(z) is further structured into specific display data, specifically expressed as SD=h(G(z),S′), where SD represents the structured display data and S′ represents the style details in the display configuration; the display page is controlled to present the output according to the structured data SD, and the UI framework or API is called to render the elements, so as to realize the visual display of the output results of the artificial intelligence model; Step S4, constructing a Bayesian network, filtering out the most relevant data through a probabilistic inference method, and matching according to the inference results, specifically including the following steps: abstracting user needs into a set of discrete or continuous variable sets U, each variable u i Reflect a demand; at the same time, collect the configuration parameters of the current display page to form another set of variables, extract key features from the determined display data to match with user needs and display configuration; preprocess the extracted features, including standardization, normalization and missing value filling operations to improve data quality and consistency; construct a Bayesian network B=(N,E), where N={N1,N2,...,N k } represents a node set, each node N i Corresponding to a data feature, E={(N i ,N j )|N i →N j } represents a directed edge set, which indicates the dependency relationship between features; user requirements U and display configuration C are input into the Bayesian network as evidence, and the Bayesian inference algorithm is used to calculate the posterior probability distribution P(N i |U,C),P(N i |U,C) means that under the conditions of user demand U and display configuration C, node N i Based on the calculated posterior probability distribution, the matching algorithm γ is used to match the data and calculate the similarity score. The specific formula is: Sim = γ (F preprocessed ,U,C), where F preprocessed represents the preprocessed feature set, Sim represents the similarity score; filter the data according to the similarity score and the preset threshold τ, select the data item with the highest matching degree as the final display data, and form the filtered data set D filtered ={d ^ ∈D display |Sim(d,U,C)≥τ}, where D display Indicates the data set currently available for display, d ^ Indicates D display A single data item in filtered Represents the filtered data set; dynamically updates the parameters and structure of the Bayesian network according to the real-time input user needs and display configuration; uses the reinforcement learning algorithm to optimize the parameters and structure of the Bayesian network, adjusts the model by maximizing the expected reward E[R(θ)], and improves the matching and filtering effects. The optimization goal is expressed as: θ ^ =argmax θ E[R(θ)], where θ represents the parameters of the Bayesian network, R represents the reward function, and θ ^ Indicates the optimal parameters to be found; matches and filters user requirements and display configurations with structured data to select the data items with the highest matching degree as the final display data; Step S5, introducing blockchain technology to ensure the security and transparency of data update and display; Step S6, combining cloud computing and edge computing technologies to achieve efficient storage and access of data.

2. The method for visual output of an artificial intelligence model according to claim 1, characterized in that: The intelligent parsing engine model includes a preprocessing layer, a feature extraction layer and a format recognition layer, wherein: the preprocessing layer is used to preprocess the original data, including removing irrelevant characters, standardizing code formats and word segmentation; the feature extraction layer is used to extract word frequency statistics, grammatical structure features and syntax tree structures from the preprocessed data. The word frequency statistics are calculated to calculate the number of times each word appears in the code. The grammatical structure features are determined by analyzing whether the brackets in the source code are correctly paired and their nesting levels through the stack data structure. The syntax tree structure uses the parsing technology in the compiler principle to convert the source code into an abstract syntax tree to obtain; the format recognition layer inputs the extracted features into the long short-term memory network to identify the programming language characteristics and parse the data format.

3. The method for visual output of an artificial intelligence model according to claim 2, characterized in that: The core formula of the long short-term memory network is: T =σ(W HH H T-1 +W xH x T +b H ), y T =softmax(W Hy H T +b y ), where H T represents the hidden state at time step T, H T-1 represents the hidden state of the previous time step T-1, x T is the input of the current time step, σ is the activation function, W HH ,W xH ,W Hy is the weight matrix, b h ,b y is the bias term, y T is the prediction result of the output layer.

4. The method for visual output of an artificial intelligence model according to claim 1, characterized in that: In step S5, the data is converted from the original output of the artificial intelligence model based on the first programming language to the first intermediate data based on the second programming language, and then to the final structured intermediate data, i.e., the display data. The above conversion process and its results will be recorded as transactions on the blockchain; any adjustment to the display configuration information will also be regarded as a new transaction on the blockchain, ensuring that the configuration history is traceable and cannot be changed; each participating node will confirm the validity of the data update to ensure that only verified data changes are added to the blockchain, thereby ensuring the accuracy of data display; the openness and immutability of the blockchain allow authorized users to trace each transaction and view the evolution of the data from its original state to the final display form.

5. A visual output device for an artificial intelligence model, used to implement a visual output method for an artificial intelligence model according to any one of claims 1 to 4, characterized in that: Includes the following modules: A parsing module, which is used to receive the output data of the artificial intelligence model and automatically identify and parse the data format using an intelligent parsing engine; Data conversion module, used to convert the parsed data into other programming language formats; The data generation and screening module uses the generator G in the generative adversarial network to generate candidate data based on the noise data, and uses the discriminator D to screen out the structured intermediate data that meets the display configuration information; A matching and filtering module is used to match and filter user requirements and display configurations with structured data to select the data items with the highest matching degree as the final display data; The blockchain data security module uses blockchain technology to ensure the consistency and immutability of data between nodes, and provides data traceability by recording historical information of data conversion and display configuration; The cloud-edge collaborative storage access module combines the powerful computing and storage capabilities of cloud computing and the low-latency characteristics of edge computing to achieve efficient storage and fast access to data; at the same time, centralized management and processing in the cloud is combined with distributed processing on edge nodes.

6. A visual output device for an artificial intelligence model, comprising a processor, a memory and a communication interface, characterized in that: The memory stores a computer program, and the processor executes the visualization output method of an artificial intelligence model described in any one of claims 1-4.

7. A medium, characterized in that The medium stores a computer program, which, when executed by a processor, implements a visualization output method of an artificial intelligence model as described in any one of claims 1-4.