Artificial intelligence data analysis method and system based on machine learning

Using multi-modal machine learning methods for data preprocessing and feature extraction, combined with graph attention networks and multi-layer perceptrons for data prediction, the problem of data noise and incompleteness in the existing technology is solved, and the accuracy of data analysis is improved. and efficiency, and ensure data security.

CN118428493BActive Publication Date: 2024-08-30SHULIANG KEJI

Patent Information

Application Number
CN202410895956.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-08-30
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

Existing artificial intelligence data analysis methods based on machine learning are relatively simple in the data preprocessing stage and fail to effectively solve the noise and incompleteness problems in the data set. A single model cannot fully utilize the potential correlation of the data when processing highly heterogeneous data. Currently, Some feature extraction methods such as TF-IDF perform poorly when processing non-text data and cannot fully capture the complex patterns in image and sound data.

Method used

Using multi-modal machine learning methods, text, image and sound data are collected through API for pre-processing, Gaussian filtering is used to denoise and interpolation methods are used to fill in missing data, a graph attention network model is constructed for feature extraction, and a multi-layer perceptron is used for data processing Predict, and implement data encryption and interactive visualization interface design.

Benefits of technology

It improves the quality and prediction accuracy of data processing, enhances the generalization ability and analysis efficiency of the model, can more accurately capture complex patterns and associations of multiple data types, and ensures data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428493B
    Figure CN118428493B
Patent Text Reader

Abstract

The present invention discloses an artificial intelligence data analysis method and system based on machine learning, which relates to the field of data analysis technology, including collecting data from a data source and preprocessing it, extracting features from the preprocessed data; constructing a multimodal machine learning model to predict data and predict the probability of a category; implementing data encryption, constructing an interactive data visualization interface, storing, collecting and analyzing the generated artificial intelligence data. The present invention collects data from a data source and preprocesses it, extracts features from the preprocessed data, constructs a multimodal machine learning model to predict data and predict the probability of a category, thereby improving the generalization ability and prediction accuracy of the model, not only optimizing the data processing quality, but also improving the accuracy and efficiency of data analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data analysis technology, and in particular to an artificial intelligence data analysis method and system based on machine learning. Background Art

[0002] In recent years, the application of machine learning in the field of data analysis has developed rapidly, especially in processing large-scale text, image and sound data. The basic concept of machine learning is to parse data, learn data, and make decisions or predictions through algorithms without manually writing specific instructions. The current mainstream data analysis methods include support vector machines (SVM), deep learning, decision trees, etc., which can effectively process various structured and unstructured data. In particular, deep learning technologies, such as convolutional neural networks (CNN) and recursive neural networks (RNN), are widely used in image and sound data analysis due to their powerful feature extraction capabilities. Multimodal learning has also become a research hotspot in recent years. It improves learning effects by fusing information from different modalities, and is particularly suitable for processing complex data sets containing multiple data types.

[0003] Although the existing technology has made significant progress, there are still some shortcomings. Many existing methods are relatively simple in the data preprocessing stage and fail to effectively solve the noise and incompleteness problems in the data set. Although a single model performs well in some situations, when processing highly heterogeneous data, it often cannot fully utilize the potential correlation between various types of data, resulting in a one-sided interpretation of information. Existing feature extraction methods such as TF-IDF perform poorly when processing non-text data and cannot fully capture the complex patterns in image and sound data. Summary of the invention

[0004] In view of the problems existing in the above-mentioned existing artificial intelligence data analysis methods and systems based on machine learning, the present invention is proposed.

[0005] Therefore, the problem to be solved by the present invention is that many existing methods are relatively simple in the data preprocessing stage and fail to effectively solve the noise and incompleteness problems in the data set. Although a single model performs well in some situations, when processing highly heterogeneous data, it often fails to fully utilize the potential correlation between various types of data, resulting in a one-sided interpretation of information. Existing feature extraction methods such as TF-IDF perform poorly when processing non-text data and cannot fully capture the complex patterns in image and sound data.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: an artificial intelligence data analysis method based on machine learning, which includes collecting data from a data source and preprocessing it, extracting features from the preprocessed data ; Build multimodal machine learning models for data prediction and predict the probability of categories; implement data encryption, build interactive data visualization interfaces, store, collect and analyze the generated artificial intelligence data.

[0007] As a preferred solution of the artificial intelligence data analysis method based on machine learning described in the present invention, wherein: the data collected from the data source and preprocessed refers to using an API to collect text, image and sound data from the data source;

[0008] Unify the timestamps of the collected data;

[0009] Check and delete duplicate data in collected data;

[0010] Use interpolation to fill in missing text data in the collected data;

[0011] The collected image and sound data are subjected to denoising through Gaussian filtering;

[0012] The collected data were standardized.

[0013] As a preferred solution of the artificial intelligence data analysis method based on machine learning described in the present invention, wherein: the feature extraction of the preprocessed data Refers to collecting historical text, image and sound data and extracting features to generate feature training sets;

[0014] Use TF-IDF method to extract text data feature vector ;

[0015] Use the pre-trained ResNet model to calculate the feature vector of the image through forward propagation ;

[0016] Use the frequency domain conversion tool Mel spectrum coefficient MFCC to extract the sound feature vector ;

[0017] The text feature vector , image feature vector and sound feature vector They are respectively used as nodes and stacked to form the node feature matrix V:

[0018] ;

[0019] Use cosine similarity to calculate the similarity between nodes i and z , the formula is:

[0020] ,

[0021] in and are the feature vectors of nodes i and z respectively;

[0022] Based on the historical operation data, the correlation threshold θ is set, and the similarity Construct the adjacency matrix A:

[0023] ;

[0024] Combine the node feature matrix V and the adjacency matrix A to form the feature graph G:

[0025] ;

[0026] Constructing the graph attention network GAT model includes input layer, graph attention layer, multi-head attention layer, and output layer;

[0027] Initialize the graph attention network GAT model parameters;

[0028] Define the input of the graph attention network GAT model as the feature graph G;

[0029] For each node i and its neighbor node z, use the node feature vector and Calculate the attention coefficient :

[0030] The node feature vector and Through the linear transformation matrix W, we can get and ;

[0031] Connect the transformed feature vectors to form a new node feature vector ;

[0032] Use the weight vector a of the attention mechanism to calculate the weighted sum, and then use the LeakyReLU activation function to get the attention coefficient , the formula is:

[0033] ;

[0034] Where a is the weight vector of the attention mechanism, LeakyReLU is the activation function, and T is the transpose;

[0035] The attention factor Normalized, the formula is:

[0036] ,

[0037] in is the normalized attention coefficient, Node u is a node in the neighbor node set of node i, is the attention coefficient between node i and its neighbor node u;

[0038] Use the multi-head attention mechanism, define the number of independent attention heads as K, and calculate the features of attention head k for:

[0039] ,

[0040] in is a nonlinear activation function, is the attention coefficient of the kth attention head, is the weight matrix of the kth attention head, Node z is a node in the neighbor node set of node i;

[0041] Average the output features of multi-head attention calculations to obtain the final node features The formula is:

[0042] ,

[0043] The output layer globally aggregates the feature representations of all nodes to obtain the final fused feature vector:

[0044] ,

[0045] in The final fused feature vector, R is the total number of nodes;

[0046] Use the feature training set for training, and use the loss function and Adam optimizer to iteratively optimize the model parameters;

[0047] The preprocessed data is subjected to feature extraction and input into the trained graph attention network GAT model to obtain the fused feature vector .

[0048] As a preferred solution of the artificial intelligence data analysis method based on machine learning described in the present invention, wherein: the construction of a multimodal machine learning model for data prediction and the probability of predicting a category refers to collecting text, image and sound data from historical data sources, cleaning and standardizing the data from the historical data sources, merging the data from the historical data sources into a data set, and generating a historical data source training set;

[0049] Use random forest, support vector machine and gradient boosting tree as base models respectively, adjust the parameters of the base models, use grid search to determine the optimal parameters, input historical data source training set for independent training, use cross-validation method to evaluate the effect of parameter combination, and obtain the optimal parameters;

[0050] The fused feature vector Input them into the trained base models for prediction respectively, and get the probability of each category predicted by the three base models. , and ;

[0051] Construct a stacked generalization model architecture. The first layer is to train and save the prediction results of the base model. The second layer uses the multi-layer perceptron MLP as the meta-model. The input of the meta-model is defined as the content of the first layer, and the output of the meta-model is the final prediction probability of each category.

[0052] The multi-layer perceptron MLP model formula is:

[0053] ,

[0054] in For the probability of each category, is the prediction result of the oth base model, is the weight of the corresponding model, and D is the number of base models;

[0055] Generate a meta-model training set based on the prediction results of the historical base model and the actual labels of the original training samples;

[0056] Use the prediction results of the historical base model in the meta-model training set as the base model features, the true label as the target value, and solve the weight through the optimization algorithm , use the meta-model training set to train the multi-layer perceptron MLP model to minimize the overall prediction error, and the optimization weight formula is:

[0057] ,

[0058] in is the one-hot encoding of the true label, is the model input, D is the number of base models, and T is the number of base models;

[0059] Initialize the weight vector w, calculate the prediction error, and update the weight. The formula is:

[0060] ,

[0061] in is the weight of the corresponding model, is the learning rate, L is the cross entropy loss function, is the gradient of the loss function with respect to the weight;

[0062] The formula for the cross entropy loss function L is:

[0063] ,

[0064] in is the predicted probability of the jth class by the multi-layer perceptron MLP model, and M is the total number of classes;

[0065] The base model predicts the probability of each category , and Input into the multi-layer perceptron MLP model to obtain the final probability of each category.

[0066] As a preferred solution of the artificial intelligence data analysis method based on machine learning described in the present invention, wherein: the implementation of data encryption refers to generating an encryption key using a secure key generation method;

[0067] During the data analysis process, the data is encrypted using the encryption algorithm AES-256 and the generated key, and the encryption key is stored in the key system;

[0068] Set access permissions and use authentication for access;

[0069] Get the decryption key from the key system, use the AES-256 decryption algorithm and key to decrypt the encrypted data and restore the original data.

[0070] As a preferred solution of the artificial intelligence data analysis method based on machine learning described in the present invention, wherein: the construction of an interactive data visualization interface refers to using D3.js as a data visualization library to construct a page layout;

[0071] Define the basic structure and style of the page using HTML and CSS;

[0072] Use SHAP to visualize the comprehensive prediction results using D3.js data visualization charts;

[0073] Add interactivity to charts, including tooltips, data filters, zooming, and dragging capabilities.

[0074] As a preferred solution of the artificial intelligence data analysis method based on machine learning described in the present invention, wherein: the artificial intelligence data generated by the storage, collection and analysis refers to the data collected from the data source, the extracted features and the data generated during the analysis process are sorted and stored in the database according to the timestamp, and the stored data are marked;

[0075] Back up the stored data regularly, and regularly perform security and integrity checks on the stored data and backup data and generate test reports.

[0076] Another object of the present invention is to provide an artificial intelligence data analysis system based on machine learning, which comprises:

[0077] The collection and extraction module is used to collect data from the data source and perform feature extraction;

[0078] Build a model module, which is used to build a multimodal machine learning model for data prediction and predict the probability of categories;

[0079] The encryption visualization module is used to encrypt during data analysis, build an interactive data visualization interface, and display the prediction results of the multi-layer perceptron MLP model;

[0080] Storage module, used to store artificial intelligence data generated by collection and analysis.

[0081] A computer device comprises: a memory and a processor; the memory stores a computer program, and the processor implements the steps of the above-mentioned artificial intelligence data analysis method based on machine learning when executing the computer program.

[0082] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned artificial intelligence data analysis method based on machine learning.

[0083] The beneficial effects of the present invention are as follows: the present invention collects data from a data source and preprocesses it, performs feature extraction on the preprocessed data, constructs a multimodal machine learning model for data prediction, and predicts the probability of categories, thereby improving the generalization ability and prediction accuracy of the model, which not only optimizes the data processing quality, but also improves the accuracy and efficiency of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0085] Figure 1 Schematic diagram of the process of artificial intelligence data analysis method based on machine learning.

[0086] Figure 2 A structural diagram of the artificial intelligence data analysis method based on machine learning.

[0087] Figure 3 A structural diagram of the artificial intelligence data analysis method based on machine learning. DETAILED DESCRIPTION

[0088] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0089] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0090] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.

[0091] Example 1

[0092] Reference Figure 1 and Figure 2 , is the first embodiment of the present invention, which provides an artificial intelligence data analysis method based on machine learning, and the artificial intelligence data analysis method based on machine learning includes:

[0093] S1. Collect data from the data source and preprocess it, and extract features from the preprocessed data ;

[0094] Specifically, collecting data from a data source and preprocessing it means using an API to collect text, image, and sound data from a data source;

[0095] Unify the timestamps of the collected data;

[0096] Check and delete duplicate data in collected data;

[0097] Use interpolation to fill in missing text data in the collected data;

[0098] The collected image and sound data are subjected to denoising through Gaussian filtering;

[0099] The collected data were standardized.

[0100] Collecting data through API can achieve efficient data access and management, ensure the real-time and relevance of data, and provide a rich input source for subsequent analysis. The unified timestamp ensures the temporal consistency of data during processing and analysis, which is particularly important for applications that require time series analysis or real-time decision support. Deleting duplicate data can reduce storage requirements, improve data processing efficiency and the accuracy of analysis models, thereby avoiding deviations in analysis results. Interpolation can effectively restore missing text information and improve data integrity, thereby enhancing the analytical value and reliability of data sets. Gaussian filtering can not only effectively reduce noise in image and sound data, improve data clarity and quality, but also help improve the effects of subsequent feature extraction and data analysis. Standardization processing allows data from different sources and types to be fairly compared and calculated in machine learning models, greatly enhancing the generalization ability of the model.

[0101] Furthermore, features are extracted from the preprocessed data. Refers to collecting historical text, image and sound data and extracting features to generate feature training sets;

[0102] Use TF-IDF method to extract text data feature vector ;

[0103] Use the pre-trained ResNet model to calculate the feature vector of the image through forward propagation ;

[0104] Use the frequency domain conversion tool Mel spectrum coefficient MFCC to extract the sound feature vector ;

[0105] The text feature vector , image feature vector and sound feature vector They are respectively used as nodes and stacked to form the node feature matrix V:

[0106] ;

[0107] Use cosine similarity to calculate the similarity between nodes i and z , the formula is:

[0108] ,

[0109] in and are the feature vectors of nodes i and z respectively;

[0110] Based on the historical operation data, the correlation threshold θ is set, and the similarity Construct the adjacency matrix A:

[0111] ;

[0112] Combine the node feature matrix V and the adjacency matrix A to form the feature graph G:

[0113] ;

[0114] Constructing the graph attention network GAT model includes input layer, graph attention layer, multi-head attention layer, and output layer;

[0115] Initialize the graph attention network GAT model parameters;

[0116] Define the input of the graph attention network GAT model as the feature graph G;

[0117] For each node i and its neighbor node z, use the node feature vector and Calculate the attention coefficient :

[0118] The node feature vector and Through the linear transformation matrix W, we can get and , use Xavier to initialize the linear transformation matrix W so that its dimension fits the node feature vector and The dimensions of the input features and output features, set the dimension r of the input feature vector and the dimension of the output feature vector , then the dimension of the linear transformation matrix W is r× , for each node i and its neighbor node z, the node feature vector and Perform linear transformation to generate the transformed feature vector and ;

[0119] Connect the transformed feature vectors to form a new node feature vector ;

[0120] Use the weight vector a of the attention mechanism to calculate the weighted sum, and then use the LeakyReLU activation function to get the attention coefficient , the formula is:

[0121] ,

[0122] Where a is the weight vector of the attention mechanism, LeakyReLU is the activation function, and T is the transpose;

[0123] The attention factor Normalized, the formula is:

[0124] ,

[0125] in is the normalized attention coefficient, Node u is a node in the neighbor node set of node i, is the attention coefficient between node i and its neighbor node u;

[0126] Use the multi-head attention mechanism, define the number of independent attention heads as K, and calculate the features of attention head k for:

[0127] ,

[0128] in is a nonlinear activation function, is the attention coefficient of the kth attention head, is the weight matrix of the kth attention head, Node z is a node in the neighbor node set of node i;

[0129] Average the output features of multi-head attention calculations to obtain the final node features The formula is:

[0130] ,

[0131] The output layer globally aggregates the feature representations of all nodes to obtain the final fused feature vector:

[0132] ,

[0133] in The final fused feature vector, R is the total number of nodes;

[0134] Use the feature training set for training, and use the loss function and Adam optimizer to iteratively optimize the model parameters;

[0135] The preprocessed data is subjected to feature extraction and input into the trained graph attention network GAT model to obtain the fused feature vector .

[0136] Using TF-IDF can effectively extract key information from text data, reduce the impact of common words, and highlight important words, thereby improving the performance of subsequent machine learning models and the relevance of results. The pre-trained ResNet model improves the accuracy of image recognition by utilizing deep features, especially in complex image backgrounds, and can effectively identify and classify the main content of the image. MFCC provides an effective way to characterize sound data and can capture the basic properties of sound, such as pitch and rhythm, which is of great value for sound analysis and recognition. Constructing a matrix ensures that features extracted from different data sources can be effectively integrated in a unified framework, which is conducive to subsequent deep learning processing. Through the attention mechanism, the model can adaptively focus on the most important features, improving the accuracy and efficiency of data processing. Multi-head attention provides the ability to analyze data from multiple perspectives and enhances the model's ability to capture the inherent associations of data.

[0137] S2. Build a multimodal machine learning model for data prediction and predict the probability of the category;

[0138] Specifically, a multimodal machine learning model is constructed for data prediction. The probability of predicting a category refers to collecting text, image, and sound data from historical data sources, cleaning and standardizing the data from historical data sources, merging the data from historical data sources into a data set, and generating a historical data source training set.

[0139] Use random forest, support vector machine and gradient boosting tree as base models respectively, adjust the parameters of the base models, use grid search to determine the optimal parameters, input historical data source training set for independent training, use cross-validation method to evaluate the effect of parameter combination, and obtain the optimal parameters;

[0140] The fused feature vector Input them into the trained base models for prediction respectively, and get the probability of each category predicted by the three base models. , and ;

[0141] Construct a stacked generalization model architecture. The first layer is to train and save the prediction results of the base model. The second layer uses the multi-layer perceptron MLP as the meta-model. The input of the meta-model is defined as the content of the first layer, and the output of the meta-model is the final prediction probability of each category.

[0142] The multi-layer perceptron MLP model formula is:

[0143] ,

[0144] in For the probability of each category, is the prediction result of the oth base model, is the weight of the corresponding model, and D is the number of base models;

[0145] Generate a meta-model training set based on the prediction results of the historical base model and the actual labels of the original training samples;

[0146] Use the prediction results of the historical base model in the meta-model training set as the base model features, the true label as the target value, and solve the weight through the optimization algorithm , use the meta-model training set to train the multi-layer perceptron MLP model to minimize the overall prediction error, and the optimization weight formula is:

[0147] ,

[0148] in is the one-hot encoding of the true label, is the model input, D is the number of base models, and T is the number of base models;

[0149] Initialize the weight vector w, calculate the prediction error, and update the weight. The formula is:

[0150] ,

[0151] in is the weight of the corresponding model, is the learning rate, L is the cross entropy loss function, is the gradient of the loss function with respect to the weight;

[0152] The formula for the cross entropy loss function L is:

[0153] ,

[0154] in is the predicted probability of the jth class by the multi-layer perceptron MLP model, and M is the total number of classes;

[0155] The base model predicts the probability of each category , and Input into the multi-layer perceptron MLP model to obtain the final probability of each category.

[0156] By constructing multiple trees and voting, random forests reduce the model's sensitivity to noise, increase the stability of prediction results, and can automatically identify the most important features, which helps explain which factors in the model play a dominant role in prediction. Through appropriate kernel functions, SVM can effectively process linearly inseparable data and is suitable for complex decision boundaries. By gradually reducing residuals, GBM can usually achieve very high accuracy, especially for competitions and complex data mining tasks. By adjusting various parameters such as learning rate, depth and number of trees, the model complexity can be controlled to adapt to different data characteristics and ensure that the optimal model parameters are found, so that the prediction model achieves the best performance, reduces the risk of overfitting the model to a specific training set, and improves the applicability of the model to new data. By combining the advantages of different models, stacked models can usually surpass the performance of any single base model. When processing nonlinear data, multi-layer perceptrons can better perform feature fusion and pattern recognition compared to traditional machine learning models.

[0157] S3, implement data encryption, build interactive data visualization interface, store, collect and analyze the generated AI data;

[0158] Specifically, implementing data encryption means generating encryption keys using a secure key generation method;

[0159] During the data analysis process, the data is encrypted using the encryption algorithm AES-256 and the generated key, and the encryption key is stored in the key system;

[0160] Set access permissions and use authentication for access;

[0161] Get the decryption key from the key system, use the AES-256 decryption algorithm and key to decrypt the encrypted data and restore the original data.

[0162] Encrypting data can prevent unauthorized access to sensitive data. Even if the data is intercepted during transmission, the data content cannot be read without the key. It is suitable for scenarios that require remote processing or storage of data, such as cloud computing, telemedicine, and online financial services. Through strict access control and identity authentication, data security can be further enhanced to prevent internal data leakage and illegal access, data decryption and recovery of original data, ensuring that data can be securely restored when needed, and remain encrypted when not needed, balancing security and availability.

[0163] Furthermore, building an interactive data visualization interface refers to using D3.js as a data visualization library to build the page layout;

[0164] Define the basic structure and style of the page using HTML and CSS;

[0165] Use SHAP to visualize the comprehensive prediction results using D3.js data visualization charts;

[0166] Add interactivity to charts, including tooltips, data filters, zooming, and dragging capabilities.

[0167] The power of D3.js lies in its flexibility and rich functionality. It can create complex charts and data visualizations while supporting a large number of user interactions. SHAP can help users understand the decision-making process of predictive models, especially in complex machine learning models. By visualizing the contribution of each feature, the transparency and trust of the model can be increased. This method of building page layouts provides a highly customizable interface layout, making data presentation more intuitive and attractive to users while maintaining the beauty and functionality of the interface. The decision-making process of the model is not only transparent but also easy to understand, helping users identify which factors play an important role in decision-making, which may guide further data analysis or business decisions. Adding interactive functions enhances the user experience, allowing users to explore different perspectives and depths of data through intuitive operations and better understand data content and patterns.

[0168] Furthermore, storing the AI ​​data generated by collection and analysis means storing the data from the collected data source, the extracted features, and the data generated during the analysis in a database in order according to timestamps, and labeling the stored data;

[0169] Back up the stored data regularly, and regularly perform security and integrity checks on the stored data and backup data and generate test reports.

[0170] Data is stored in the database in order of timestamps. This storage method facilitates subsequent data retrieval, time series analysis, and data review, ensuring the timeliness and logic of data use. Data tagging can improve the efficiency of data retrieval, allowing users to quickly find required data based on specific tags. It also helps to implement permission control and data isolation. Regular backups can minimize the risk of data loss due to hardware failures, software errors, or other external attacks. Regular backups ensure the security and integrity of data, improve the reliability and trust of the data management system, and the generated reports provide management with the necessary information to evaluate the effectiveness of the current data management strategy and make necessary policy adjustments.

[0171] Example 2

[0172] Reference Figure 3 , which is the second embodiment of the present invention, which is different from the previous embodiment and provides an artificial intelligence data analysis system based on machine learning, including:

[0173] The collection and extraction module is used to collect data from the data source and perform feature extraction;

[0174] Build a model module, which is used to build a multimodal machine learning model for data prediction and predict the probability of categories;

[0175] The encryption visualization module is used to encrypt during data analysis, build an interactive data visualization interface, and display the prediction results of the multi-layer perceptron MLP model;

[0176] Storage module, used to store artificial intelligence data generated by collection and analysis.

[0177] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0178] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0179] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0180] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit with a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit with a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

Claims

1. Artificial intelligence data analysis methods based on machine learning, Features: include, Collect data from the data source and preprocess it, then extract features from the preprocessed data ; Build a multimodal machine learning model for data prediction and predict the probability of categories; Implement data encryption, build interactive data visualization interfaces, store and collect and analyze the resulting AI data; The multimodal machine learning model is constructed to predict data and predict the probability of a category, which includes collecting text, image and sound data from historical data sources, cleaning and standardizing the data from the historical data sources, merging the data from the historical data sources into a data set, and generating a historical data source training set; Use random forest, support vector machine and gradient boosting tree as base models respectively, adjust the parameters of the base models, use grid search to determine the optimal parameters, input historical data source training set for independent training, use cross-validation method to evaluate the effect of parameter combination, and obtain the optimal parameters; The fused feature vector Input them into the trained base models for prediction respectively, and get the probability of each category predicted by the three base models. , and ; Construct a stacked generalization model architecture. The first layer is to train and save the prediction results of the base model. The second layer uses the multi-layer perceptron MLP as the meta-model. The input of the meta-model is defined as the content of the first layer, and the output of the meta-model is the final prediction probability of each category. The multi-layer perceptron MLP model formula is: , in For the probability of each category, is the prediction result of the oth base model, is the weight of the corresponding model, and D is the number of base models; Generate a meta-model training set based on the prediction results of the historical base model and the actual labels of the original training samples; Use the prediction results of the historical base model in the meta-model training set as the base model features, the true label as the target value, and solve the weight through the optimization algorithm , use the meta-model training set to train the multi-layer perceptron MLP model to minimize the overall prediction error, and the optimization weight formula is: , in is the one-hot encoding of the true label, is the model input, D is the number of base models, and T is the number of base models; Initialize the weight vector w, calculate the prediction error, and update the weight. The formula is: , in is the weight of the corresponding model, is the learning rate, L is the cross entropy loss function, is the gradient of the loss function with respect to the weight; The formula for the cross entropy loss function L is: , in is the predicted probability of the jth class by the multi-layer perceptron MLP model, and M is the total number of classes; The base model predicts the probability of each category , and Input into the multi-layer perceptron MLP model to obtain the final probability of each category.

2. The artificial intelligence data analysis method based on machine learning as claimed in claim 1, Features: Collecting data from the data source and preprocessing it refers to using an API to collect text, image and sound data from the data source; Unify the timestamps of the collected data; Check and delete duplicate data in collected data; Use interpolation to fill in missing text data in the collected data; The collected image and sound data are subjected to denoising through Gaussian filtering; The collected data were standardized.

3. The artificial intelligence data analysis method based on machine learning as claimed in claim 2, Features: The feature extraction of the preprocessed data Refers to collecting historical text, image and sound data and extracting features to generate feature training sets; Use TF-IDF method to extract text data feature vector ; Use the pre-trained ResNet model to calculate the feature vector of the image through forward propagation ; Use the frequency domain conversion tool Mel spectrum coefficient MFCC to extract the sound feature vector ; The text feature vector , image feature vector and sound feature vector They are respectively used as nodes and stacked to form the node feature matrix V: ; Use cosine similarity to calculate the similarity between nodes i and z , the formula is: , in and are the feature vectors of nodes i and z respectively; Based on the historical operation data, the correlation threshold θ is set, and the similarity Construct the adjacency matrix A: ; Combine the node feature matrix V and the adjacency matrix A to form the feature graph G: ; The graph attention network GAT model is constructed, including input layer, graph attention layer, multi-head attention layer, and output layer; Initialize the graph attention network GAT model parameters; Define the input of the graph attention network GAT model as the feature graph G; For each node i and its neighbor node z, use the node feature vector and Calculate the attention coefficient : The node feature vector and Through the linear transformation matrix W, we can get and ; Connect the transformed feature vectors to form a new node feature vector ; Use the weight vector a of the attention mechanism to calculate the weighted sum, and then use the LeakyReLU activation function to get the attention coefficient , the formula is: , Where a is the weight vector of the attention mechanism, LeakyReLU is the activation function, and T is the transpose; The attention factor Normalized, the formula is: , in is the normalized attention coefficient, Node u is a node in the neighbor node set of node i, is the attention coefficient of node i and its neighbor node u; Use the multi-head attention mechanism, define the number of independent attention heads as K, and calculate the features of attention head k for: , in is a nonlinear activation function, is the attention coefficient of the kth attention head, is the weight matrix of the kth attention head, Node z is a node in the neighbor node set of node i; Average the output features of multi-head attention calculations to obtain the final node features The formula is: , The output layer globally aggregates the feature representations of all nodes to obtain the final fused feature vector: , in The final fused feature vector, R is the total number of nodes; Use the feature training set for training, and use the loss function and Adam optimizer to iteratively optimize the model parameters; The preprocessed data is subjected to feature extraction and input into the trained graph attention network GAT model to obtain the fused feature vector .

4. The artificial intelligence data analysis method based on machine learning as claimed in claim 3, Features: The implementation of data encryption refers to generating encryption keys using a secure key generation method; During the data analysis process, the data is encrypted using the encryption algorithm AES-256 and the generated key, and the encryption key is stored in the key system; Set access permissions and use authentication for access; Get the decryption key from the key system, use the AES-256 decryption algorithm and key to decrypt the encrypted data and restore the original data.

5. The artificial intelligence data analysis method based on machine learning as claimed in claim 4, Features: The said construction of interactive data visualization interface refers to using D3.js as a data visualization library to construct a page layout; Define the basic structure and style of the page using HTML and CSS; Use SHAP to visualize the comprehensive prediction results using D3.js data visualization charts; Add interactivity to charts, including tooltips, data filters, zooming, and dragging capabilities.

6. The artificial intelligence data analysis method based on machine learning as claimed in claim 5, Features: The artificial intelligence data generated by the storage, collection and analysis refers to the data collected from the data source, the extracted features and the data generated during the analysis process, which are sorted and stored in the database according to timestamps, and the stored data are marked; Back up the stored data regularly, and regularly perform security and integrity checks on the stored data and backup data and generate test reports.

7. A machine learning-based artificial intelligence data analysis system based on the machine learning-based artificial intelligence data analysis method according to any one of claims 1 to 6, Features: include, The collection and extraction module is used to collect data from the data source and perform feature extraction; Build a model module, which is used to build a multimodal machine learning model for data prediction and predict the probability of categories; The encryption visualization module is used to encrypt during data analysis, build an interactive data visualization interface, and display the prediction results of the multi-layer perceptron MLP model; Storage module, used to store artificial intelligence data generated by collection and analysis.

8. A computer device, include: Memory and processor; The memory stores a computer program, characterized in that when the processor executes the computer program, the steps of the artificial intelligence data analysis method based on machine learning described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by a processor, the steps of the artificial intelligence data analysis method based on machine learning described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Multi-modal small sample depression prediction model construction method

    CN115249539A

  • Multi-modal fusion and emotion recognition method based on attention mechanism

    CN116992361A

  • Multi-modal false news detection method based on multi-level semantic enhancement

    CN117315695A

  • Data center system based on big data acquisition and analysis

    CN117370325A

  • Network security situation prediction method and system based on artificial intelligence

    CN118041581A

Cited By

  • Medical data management method and system based on artificial intelligence

    CN120068101A

  • Artificial intelligence-based medical data management method and system

    CN120068101B