A method for constructing and evaluating a data indicator model

Through feature analysis and learning models, combined with preset algorithms and real-time processing processes, the problem of missing values ​​and outliers in traditional data indicator models is solved, the accuracy and stability of the model are improved, the model performance is optimized, and a more reliable Data support.

CN118296389BActive Publication Date: 2024-10-15BEIJING YUNCHENG FINANCIAL INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410720040.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-15
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

There are problems such as missing values ​​and outliers in the construction process of traditional data indicator models, which affect the accuracy and stability of the model. In addition, feature engineering requires manual selection of features, which is time-consuming and labor-intensive and subject to subjective bias. Traditional model evaluation methods cannot comprehensively evaluate model performance. As a result, the optimal model cannot be selected.

Method used

Extract richer and more accurate features through feature analysis and learning models, use preset algorithms and real-time processing processes to accelerate model construction, evaluate different feature combinations, select the optimal feature combination, optimize model performance, and improve the model's explanatory and predictive capabilities. .

Benefits of technology

It improves the accuracy and stability of the model, improves work efficiency, optimizes model performance, and provides more reliable and effective data support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118296389B_ABST
    Figure CN118296389B_ABST
Patent Text Reader

Abstract

The present invention provides a method for constructing and evaluating a data indicator model, which belongs to the field of data analysis technology, and includes: step 1: extracting key indicators from raw data of different data sources through a preset real-time processing flow, performing feature analysis on the key indicators, and obtaining first indicator features; step 2: obtaining an optimal initial data indicator model based on a preset algorithm and the first indicator feature; step 3: constructing a learning model based on the raw data and the first indicator feature, and then obtaining a second indicator feature; step 4: evaluating the second indicator feature based on a preset learning algorithm, and selecting an optimal feature combination based on the evaluation result; step 5: adjusting the optimal initial data indicator model based on the optimal feature combination, and then constructing a final data indicator model. The efficiency of model construction and the reliability of the constructed model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data analysis, and in particular to a method for constructing and evaluating a data indicator model. Background Art

[0002] In the data-driven era, enterprises are increasingly relying on data to make decisions and optimize business processes. Therefore, building an efficient data indicator model has become one of the important means for enterprises to enhance their competitiveness.

[0003] The traditional data indicator model construction process usually includes steps such as data collection, data cleaning, feature engineering, modeling and evaluation. In the traditional data indicator model construction process, the original data may have missing values, outliers and other problems, which affect the accuracy and stability of the model. In addition, traditional feature engineering requires manual feature selection, which is time-consuming and labor-intensive and may have subjective biases. Traditional model evaluation methods cannot fully evaluate the performance of the model, resulting in failure to select the optimal model.

[0004] Therefore, the present invention provides a method for constructing and evaluating a data indicator model. Summary of the invention

[0005] The present invention provides a method for constructing and evaluating a data indicator model, which is used to comprehensively understand data and extract richer and more accurate features through feature analysis and learning models, thereby improving the accuracy and stability of the model. The use of preset algorithms and real-time processing flows accelerates the model construction process and improves work efficiency. By evaluating different feature combinations and selecting the optimal feature combination, the model performance is further optimized, the model's explanatory and predictive capabilities are improved, and more reliable and effective data support is provided based on the constructed final data indicator model.

[0006] The present invention provides a method for constructing and evaluating a data indicator model, comprising:

[0007] Step 1: extract key indicators from raw data of different data sources through a preset real-time processing process, perform feature analysis on the key indicators, and obtain first indicator features;

[0008] Step 2: Obtaining an optimal initial data indicator model based on a preset algorithm and the first indicator feature;

[0009] Step 3: Build a learning model based on the original data and the first indicator feature to obtain the second indicator feature;

[0010] Step 4: Evaluate the second indicator feature based on a preset learning algorithm, and select the optimal feature combination based on the evaluation result;

[0011] Step 5: Adjust the optimal initial data indicator model based on the optimal feature combination, and then build the final data indicator model.

[0012] The present invention provides a method for constructing and evaluating a data indicator model, which extracts key indicators from raw data through a preset real-time processing flow, including:

[0013] Preprocess the raw data, obtain processed data, and group the processed data based on different data sources;

[0014] Performing a first analysis on each set of processed data, thereby determining a representative field of each set of processed data;

[0015] Perform a second analysis on a number of preset business requirements, and then obtain a requirement field corresponding to each preset business requirement;

[0016] Match each requirement field with the representative field of each set of processed data;

[0017] Determine a number of required fields corresponding to each group of processed data based on the matching results;

[0018] Determine the key indicator type of each set of processing data based on a number of required fields corresponding to each set of processing data;

[0019] Determine the extraction method corresponding to each key indicator type based on a preset key indicator type-extraction method database;

[0020] Extract key indicators for each set of processed data based on key indicator type and corresponding extraction method.

[0021] The present invention provides a method for constructing and evaluating a data indicator model, which obtains an optimal initial data indicator model based on a preset algorithm and a first indicator feature, including:

[0022] Performing feature analysis on the first indicator features to determine the feature type of each first indicator feature;

[0023] Perform feature analysis on each preset model in the preset base model candidate pool to determine the model features of each preset base model;

[0024] Perform feature matching on the feature types of all first indicator features and the model features of each preset base model;

[0025] Screening the matching results to obtain a plurality of first base models corresponding to each first indicator feature whose matching degree is greater than a preset matching threshold;

[0026] Combining a plurality of first base models corresponding to each first indicator feature based on a preset combination method to obtain a plurality of first models corresponding to each first indicator feature;

[0027] All first models are evaluated, and the optimal initial data indicator model is determined based on the evaluation results.

[0028] The present invention provides a method for constructing and evaluating a data indicator model. The base models in the preset base model selection pool include: a linear model, a decision tree model, a clustering model, a neural network model, an ensemble learning model, a dimensionality reduction model, a generative model and a time series model.

[0029] The present invention provides a method for constructing and evaluating a data indicator model, which evaluates all first models, including:

[0030] The score of each first base model in each first model is calculated based on a preset algorithm:

[0031] ;in, is the score of the jth base model in the i-th first model, is the accuracy of the jth base model in the i-th first model, and , is the recall rate of the jth base model in the i-th first model, and , is the F1 score of the jth base model in the i-th first model, and , is the accuracy of the jth base model in the i-th first model, and , is the preset weight of the accuracy of the jth base model in the i-th first model, is the preset weight of the recall rate of the jth base model in the i-th first model, is the preset weight of the F1 score of the jth base model in the i-th first model, is the preset weight of the accuracy of the jth base model in the i-th first model, The preset weights for the interaction term between precision and recall;

[0032] ;in, is the first penalty term for the score of the jth base model in the i-th first model, is the second penalty term for the score of the jth base model in the i-th first model, is the third penalty term for the score of the jth base model in the i-th first model, The first penalty The preset coefficient of The second penalty The preset coefficient of The third penalty The preset coefficient of

[0033] A score for each corresponding first model is determined based on the score of each first base model.

[0034] The present invention provides a method for constructing and evaluating a data indicator model, which constructs a learning model based on original data and a first indicator feature, and then obtains a second indicator feature, including:

[0035] Training an adversarial network model based on the original data, the first indicator feature, and the first training algorithm;

[0036] After the training is completed, generating a first data sample based on the adversarial network model;

[0037] Constructing an encoder and a decoder based on the original data, the first indicator feature, and the second training algorithm;

[0038] training an autoencoder model using the original data, the second training algorithm, and the first indicator feature;

[0039] The first data sample is input into the autoencoder model to obtain the second indicator feature.

[0040] The present invention provides a method for constructing and evaluating a data indicator model, comprising:

[0041] The first training algorithm is a basic training algorithm for a generative adversarial network;

[0042] The second training algorithm includes a back propagation algorithm, a stochastic gradient descent algorithm and an adaptive algorithm.

[0043] The present invention provides a method for constructing and evaluating a data indicator model, which evaluates a second indicator feature based on a preset learning algorithm, including:

[0044] Determine the value range of each second indicator feature based on a preset learning algorithm;

[0045] Determining a range threshold based on the value ranges of all second indicator features;

[0046] Each second indicator feature is evaluated based on the range threshold and the value range of each second indicator feature.

[0047] The present invention provides a method for constructing and evaluating a data indicator model. Through feature analysis and learning models, the data can be comprehensively understood and richer and more accurate features can be extracted, thereby improving the accuracy and stability of the model. The use of preset algorithms and real-time processing flows can accelerate the model construction process and improve work efficiency. By evaluating different feature combinations and selecting the optimal feature combination, the model performance can be further optimized, the model's explanatory and predictive capabilities can be improved, and more reliable and effective data support can be provided based on the final data indicator model constructed. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0049] Figure 1 It is a flow chart of a method for constructing and evaluating a data indicator model provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Example 1

[0052] like Figure 1 As shown, a method for constructing and evaluating a data indicator model provided by an embodiment of the present invention includes:

[0053] Step 1: extract key indicators from raw data of different data sources through a preset real-time processing process, perform feature analysis on the key indicators, and obtain first indicator features;

[0054] Step 2: Obtaining an optimal initial data indicator model based on a preset algorithm and the first indicator feature;

[0055] Step 3: Build a learning model based on the original data and the first indicator feature to obtain the second indicator feature;

[0056] Step 4: Evaluate the second indicator feature based on a preset learning algorithm, and select the optimal feature combination based on the evaluation result;

[0057] Step 5: Adjust the optimal initial data indicator model based on the optimal feature combination, and then build the final data indicator model.

[0058] In this embodiment, the preset real-time processing flow refers to a pre-set data processing step that can instantly process data from different sources to extract key information. For example, in an e-commerce platform, the preset real-time processing flow includes collecting user behavior data from channels such as websites, mobile applications, and social media platforms, and processing them in real time to extract key indicators;

[0059] In this embodiment, different data sources refer to data from multiple sources, including databases, log files, API interfaces, etc. For example, in the health field, different data sources may include a hospital's medical record database, sensor data from medical devices, and data collected by a patient's health app;

[0060] In this embodiment, key indicators are indicators or features that are significant in the data and are essential for understanding business conditions and making decisions. For example, in an e-commerce platform, key indicators may include user click-through rate, conversion rate, and average shopping basket value;

[0061] In this embodiment, the first indicator feature is a feature obtained after feature analysis of the key indicator. For example, for the key indicator of user click rate, its features may include click time, click location, user attributes, etc.

[0062] In this embodiment, the preset algorithm is a pre-selected algorithm used to build a preliminary data model. For example, for an e-commerce platform, the preset algorithm is logistic regression, decision tree or neural network, etc.;

[0063] In this embodiment, the optimal initial data indicator model is a preliminary data model constructed based on a preset algorithm and the first indicator feature, and has a high prediction accuracy or explanatory power. For example, in the financial field, the optimal initial data indicator model is a basic neural network model used to predict stock price changes, and is used to obtain the basic characteristics of stock price changes;

[0064] In this embodiment, the learning model is a model constructed based on the original data and the first indicator feature, and is used to learn the rules and patterns in the data. For example, in natural language processing, the learning model is a recurrent neural network (RNN) or a transformer, etc.;

[0065] In this embodiment, the second indicator feature is a new feature obtained from the learning model, which is used to further improve the performance of the model. For example, in medical diagnosis, the second indicator feature is a higher-level feature extracted from medical imaging data.

[0066] In this embodiment, the preset learning algorithm is a pre-selected algorithm or method for evaluating and optimizing the second indicator feature. For example, in a recommendation system, the preset learning algorithm may be collaborative filtering or a deep learning model;

[0067] In this embodiment, the optimal feature combination is the best feature set selected based on the evaluation results, which is used to adjust the model to improve performance. For example, in marketing, the optimal feature combination can be a set of effective user behavior features used to predict the user's purchase intention;

[0068] In this embodiment, the final data indicator model is a final data model after adjustment and optimization, and has the best prediction ability or explanation ability. For example, in the medical field, the final data indicator model can be used to predict the disease risk of patients or formulate personalized treatment plans.

[0069] The working principle and beneficial effects of the above technical solution are: through feature analysis and learning models, the data can be fully understood and richer and more accurate features can be extracted, thereby improving the accuracy and stability of the model; the model construction process can be accelerated based on the use of preset algorithms and real-time processing processes, and work efficiency can be improved; by evaluating different feature combinations and selecting the optimal feature combination, the model performance can be further optimized, the model's explanatory and predictive capabilities can be improved, and more reliable and effective data support can be provided based on the final data indicator model constructed.

[0070] Example 2

[0071] The embodiment of the present invention provides a method for constructing and evaluating a data indicator model, which extracts key indicators from raw data through a preset real-time processing flow, including:

[0072] Preprocess the raw data, obtain processed data, and group the processed data based on different data sources;

[0073] Performing a first analysis on each set of processed data, thereby determining a representative field of each set of processed data;

[0074] Perform a second analysis on a number of preset business requirements, and then obtain a requirement field corresponding to each preset business requirement;

[0075] Match each requirement field with the representative field of each set of processed data;

[0076] Determine a number of required fields corresponding to each group of processed data based on the matching results;

[0077] Determine the key indicator type of each set of processing data based on a number of required fields corresponding to each set of processing data;

[0078] Determine the extraction method corresponding to each key indicator type based on a preset key indicator type-extraction method database;

[0079] Extract key indicators for each set of processed data based on key indicator type and corresponding extraction method.

[0080] In this embodiment, preprocessing refers to the process of cleaning, normalizing or filling missing values ​​before further processing the raw data. For example, in the process of building an indicator model in the field of social media analysis, preprocessing may include removing duplicate data, processing missing values ​​and outliers, etc.

[0081] In this embodiment, the first analysis is the first analysis of the processed data, which aims to determine the representative field of each group of processed data, that is, the field that best represents the characteristics of the group of data. For example, in market research, the first analysis includes statistical analysis of product sales data and determining the average sales volume of each sales region as the representative field;

[0082] In this embodiment, the representative fields are one or more representative fields of each set of processed data determined in the first analysis. For example, in an e-commerce platform, the representative fields may be the sales volume, number of reviews, and average rating of each product.

[0083] In this embodiment, the second analysis is a further analysis of the preset business requirements, aiming to determine the requirement fields corresponding to each preset business requirement, that is, the data fields necessary to meet the business requirements. For example, in a customer relationship management system, the second analysis may include analyzing the customer satisfaction survey results and determining customer satisfaction as a requirement field;

[0084] In this embodiment, the demand field is a data field corresponding to each preset business demand determined according to the second analysis. For example, in the retail industry, the demand field includes sales, inventory, customer feedback, etc.

[0085] In this embodiment, the key indicator type is a data indicator type determined according to the required field of each group of processed data, and is used to describe the characteristics or attributes of the group of data. For example, in a health management system, the key indicator types include vital signs, symptom descriptions, and medical history.

[0086] In this embodiment, the preset key indicator type-extraction method database is a preset database for storing key indicator types and their corresponding extraction methods;

[0087] In this embodiment, the extraction method is a data extraction method or technology corresponding to each key indicator type determined by a preset key indicator type-extraction method database. For example, in meteorological observation, the extraction method may include using meteorological sensors to measure temperature, humidity, wind speed, etc. For data in the physical world, such as temperature, humidity, pressure, etc., they can be acquired by real-time collection or regular sampling by sensors. Text data mining: For text data, natural language processing technology can be used to extract keywords, entities, emotions and other information, as well as perform topic modeling and sentiment analysis. Image processing: For image data, computer vision technology can be used to extract image features, edges, textures and other information, as well as perform target detection, image classification and image segmentation. Time series analysis: For time series data, statistical methods, time series analysis methods or machine learning models can be used for trend analysis, periodicity analysis, anomaly detection, etc.

[0088] The working principle and beneficial effects of the above technical solution are: by preprocessing the original data, the accuracy and reliability of subsequent analysis are improved; the processed data are grouped according to different data sources to improve the efficiency and scalability of data processing; through the first analysis and the second analysis, the representative fields and the demand fields corresponding to the business needs are extracted from the processed data to lay the foundation for the subsequent indicator extraction; by matching the demand fields with the representative fields, the efficiency and accuracy of data utilization are improved; based on the demand fields corresponding to each group of processed data, the types of key indicators are determined, the pertinence and practicality of data analysis are improved; according to the preset key indicator type-extraction method database, the extraction method corresponding to each key indicator type is determined, and the efficiency and consistency of indicator extraction are improved. Efficient extraction and processing of original data is achieved, thereby building a more accurate and comprehensive data indicator model, providing reliable data support for business decisions.

[0089] Example 3

[0090] An embodiment of the present invention provides a method for constructing and evaluating a data indicator model, which obtains an optimal initial data indicator model based on a preset algorithm and a first indicator feature, including:

[0091] Performing feature analysis on the first indicator features to determine the feature type of each first indicator feature;

[0092] Perform feature analysis on each preset model in the preset base model candidate pool to determine the model features of each preset base model;

[0093] Perform feature matching on the feature types of all first indicator features and the model features of each preset base model;

[0094] Screening the matching results to obtain a plurality of first base models corresponding to each first indicator feature whose matching degree is greater than a preset matching threshold;

[0095] Combining a plurality of first base models corresponding to each first indicator feature based on a preset combination method to obtain a plurality of first models corresponding to each first indicator feature;

[0096] All first models are evaluated, and the optimal initial data indicator model is determined based on the evaluation results.

[0097] In this embodiment, the feature type refers to the classification or type of the feature, which is used to describe the attribute or property of the data, including: numerical type, categorical type, and text type.

[0098] In this embodiment, the preset base model candidate pool is a pre-set model set used as a candidate model for feature matching and combination. For example, in a machine learning task, the preset base model candidate pool may include logistic regression, support vector machine, and deep neural network, etc.;

[0099] In this embodiment, the model features of the preset base model refer to the specific attributes or features of each preset base model, which are used to describe the structure or performance of the model. For example, in a text classification task, the model features of the preset base model may include the number of neurons in the hidden layer, the learning rate and the loss function, etc., the scope of application of the model, the advantages and disadvantages of the model, and the requirements of the model on data features.

[0100] In this embodiment, feature matching is a process of comparing and matching the feature type of the first indicator feature with the model feature of the preset base model to determine a suitable model for use. For each model, its features are matched with each first indicator feature type, including: the model's requirements for data types: whether the model is suitable for processing numerical, categorical or textual data; the model's features: the advantages and disadvantages of the model when processing different types of data; the degree of matching between data features and models: whether the data features meet the assumptions and requirements of the model. For example, in financial risk assessment, feature matching can match the income feature type of the assessment object with the model features of the logistic regression model to determine the most suitable model.

[0101] In this embodiment, the first base model is a set of basic models determined according to the feature matching results, and is used to construct a preliminary data model. For example, in a sales forecasting task, the first base model may be a linear regression model, a decision tree model, a random forest model, and the like.

[0102] In this embodiment, the preset combination method is a process of combining multiple first base models corresponding to each first indicator feature according to a preset method. For example, in market analysis, the preset combination method may be a simple weighted average or voting method;

[0103] In this embodiment, the first model is a set of combined models obtained after feature matching and combination, which is used to construct the optimal initial data indicator model. For example, in medical image recognition, the first model can be composed of multiple convolutional neural network models to identify different types of diseases.

[0104] The working principle and beneficial effects of the above technical solution are: by analyzing the first indicator feature and the features of the preset base model, a basis is provided for subsequent matching and screening, the feature type of the first indicator feature is matched with the model features of the preset base model, the applicability and effect of the model are improved, and by setting a matching threshold, the preset base model with a matching degree higher than the threshold with the first indicator feature is screened out, the accuracy and efficiency of model selection are improved, and multiple first base models corresponding to each first indicator feature are combined to improve the comprehensive performance and generalization ability of the model, and all first models are evaluated to improve the practicality and reliability of the model. It provides more reliable support for data analysis and decision-making.

[0105] Example 4

[0106] An embodiment of the present invention provides a method for constructing and evaluating a data indicator model, wherein the base models in the preset base model selection pool include: a linear model, a decision tree model, a clustering model, a neural network model, an ensemble learning model, a dimensionality reduction model, a generative model, and a time series model.

[0107] In this embodiment, the linear model includes: linear regression and logistic regression;

[0108] In this embodiment, the tree models include: decision tree, random forest and gradient boosting tree;

[0109] In this embodiment, the clustering models include: K-means clustering and hierarchical clustering;

[0110] In this embodiment, the neural network includes: a multi-layer perceptron (MLP), a convolutional neural network (CNN), a recurrent neural network (RNN), a long short-term memory network (LSTM), a gated recurrent unit network (GRU), and a self-attention model (Transformer), etc.;

[0111] In this embodiment, the ensemble learning model includes: stacking ensemble (Stacking) and ensemble ensemble (Ensemble), etc.;

[0112] In this embodiment, the dimensionality reduction model includes: principal component analysis (PCA) and t-distributed neighbor embedding (t-SNE), etc.;

[0113] In this embodiment, the generation model includes: Generative Adversarial Network (GAN) and Variational Autoencoder (VAE), etc.;

[0114] In this embodiment, the time series models include: autoregressive moving average model (ARMA), autoregressive integrated moving average model (ARIMA), seasonal autoregressive integrated moving average model (SARIMA), long short-term memory network (LSTM) and convolutional neural network (CNN), etc.

[0115] The working principle and beneficial effects of the above technical solution are: by providing a variety of base models as options, it can cover different types of data analysis needs, from linear models to neural network models to time series models, and can deal with data modeling problems under different characteristics and scenarios, improving the applicability and flexibility of the model. The base models in the pool include linear models, decision tree models, clustering models and other types of models with different characteristics and advantages. They can be combined through methods such as ensemble learning to improve the generalization ability of the model. According to the characteristics and applicable scope of different models, combined with the specific first indicator characteristics, the model's feature matching and screening are carried out, which helps to select the most suitable model for specific characteristics and scenarios, and improves the efficiency and accuracy of the model. The construction of the data indicator model is more comprehensive and flexible, and can better adapt to different data analysis scenarios and needs, and improve the accuracy and practicality of the model.

[0116] Example 5

[0117] The embodiment of the present invention provides a method for constructing and evaluating a data indicator model, which evaluates all first models, including:

[0118] The score of each first base model in each first model is calculated based on a preset algorithm:

[0119] ;in, is the score of the jth base model in the i-th first model, is the accuracy of the jth base model in the i-th first model, and , is the recall rate of the jth base model in the i-th first model, and , is the F1 score of the jth base model in the i-th first model, and , is the accuracy of the jth base model in the i-th first model, and , is the preset weight of the accuracy of the jth base model in the i-th first model, is the preset weight of the recall rate of the jth base model in the i-th first model, is the preset weight of the F1 score of the jth base model in the i-th first model, is the preset weight of the accuracy of the jth base model in the i-th first model, The preset weights for the interaction term between precision and recall;

[0120] ;in, is the first penalty term for the score of the jth base model in the i-th first model, is the second penalty term for the score of the jth base model in the i-th first model, is the third penalty term for the score of the jth base model in the i-th first model, The first penalty The preset coefficient of The second penalty The preset coefficient of The third penalty The preset coefficient of

[0121] A score for each corresponding first model is determined based on the score of each first base model.

[0122] In this embodiment, the precision rate refers to the proportion of samples that are actually positive examples among all samples classified as positive examples, and the formula is: ; TP stands for true positive and FP stands for false positive. For example, if there are 100 people classified as having a disease, 80 of them actually have the disease, and the other 20 are false positives due to misdiagnosis, then the accuracy of the model is 80%;

[0123] In this embodiment, the recall rate refers to the proportion of samples that are correctly classified as positive examples among all samples that are actually positive examples, and the formula is: ; TP stands for true positive examples and FN stands for false negative examples. For example, in the above example, if there are 100 people who actually have the disease and the model correctly predicts 70 of them, then the recall rate of the model is 70%;

[0124] In this embodiment, the F1 score is the harmonic mean of the precision and the recall, and is used to comprehensively evaluate the performance of the model. The value range of the F1 score is between 0 and 1, and the higher the value, the better the model performance;

[0125] In this embodiment, the accuracy rate refers to the proportion of correctly classified samples among all samples, and the formula is: TN stands for true negative examples. For example, in a binary classification problem, there are 1,000 samples, of which 900 are correctly classified, then the accuracy of the model is 90%;

[0126] In this embodiment, three penalty items are introduced when evaluating each first model to penalize different parts of the model score in order to better measure the overall performance of the model. These penalty items may be defined according to specific business needs or model performance requirements. For example, for some models, low values ​​of precision or recall may have higher penalties.

[0127] The working principle and beneficial effects of the above technical solution are: by calculating the precision, recall, F1 score and accuracy of each first base model in each first model, the different performance aspects of the model are comprehensively considered, so as to more comprehensively evaluate the performance of the model, and by setting a preset weight for each indicator, the important indicators have a greater impact on the model evaluation results, and the preset weight of the interaction term of precision and recall is introduced, and the impact of the relationship between these two indicators on the model evaluation is considered, which helps to more accurately evaluate the performance of the model in the classification of positive and negative samples, and by introducing a penalty term, the unfavorable factors in the model score are considered and adjusted, such as penalizing the poor performance of the model in certain indicators, so as to promote the model to achieve better performance in multiple indicators. The reliability and practicality of the model are improved.

[0128] Example 6

[0129] An embodiment of the present invention provides a method for constructing and evaluating a data indicator model, which constructs a learning model based on original data and a first indicator feature, and then obtains a second indicator feature, including:

[0130] Training an adversarial network model based on the original data, the first indicator feature, and the first training algorithm;

[0131] After the training is completed, generating a first data sample based on the adversarial network model;

[0132] Constructing an encoder and a decoder based on the original data, the first indicator feature, and the second training algorithm;

[0133] training an autoencoder model using the original data, the second training algorithm, and the first indicator feature;

[0134] The first data sample is input into the autoencoder model to obtain the second indicator feature.

[0135] In this embodiment, the adversarial network model is a model composed of a generator and a discriminator, which learn to generate data with a distribution similar to real data in an adversarial manner. The generator attempts to generate realistic data samples, while the discriminator attempts to distinguish between the generated samples and the real samples. Through the adversarial process, the generator continuously improves the realism of the generated samples, while the discriminator continuously improves its ability to distinguish between real and fake samples. For example, in the field of image generation, the generator can generate realistic face images, while the discriminator attempts to distinguish between the generated face images and the real face images.

[0136] In this embodiment, the first data samples refer to data samples generated by the adversarial network model, and their features are associated with the original data and the first indicator features. These data samples are generated based on the original data and the first indicator features. For example, in the user behavior data of an e-commerce website, the first data sample is virtual user data generated by the model with similar real user behavior.

[0137] In this embodiment, the encoder and decoder are components of the autoencoder model. The encoder is responsible for encoding the input data into a low-dimensional representation, while the decoder decodes this low-dimensional representation into the original input data. The encoder and decoder are usually symmetrical structures. For example, in image processing, the encoder can encode the image into a low-dimensional vector, and the decoder decodes this vector into the original image;

[0138] In this embodiment, the autoencoder is an unsupervised learning model for learning an effective representation of data. It consists of an encoder and a decoder, and learns the representation of data by minimizing the difference between the input and the reconstructed output. Autoencoders are often used for tasks such as feature extraction and dimensionality reduction. For example, in the field of anomaly detection, autoencoders can learn the representation of normal data and detect abnormal data that is different from normal data.

[0139] In this embodiment, the second indicator feature is a new feature representation extracted from the first data sample by the autoencoder model, which is a feature optimization of the first indicator feature. These features are associated with the original data and the first indicator feature and can be used for subsequent model training and evaluation. For example, in medical diagnosis, the first indicator feature may be the patient's basic information and physiological indicators, while the second indicator feature may be a disease feature extracted from medical imaging data.

[0140] The working principle and beneficial effects of the above technical solution are: by combining the adversarial network model and the autoencoder model, and using the encoder and decoder to construct the data feature representation, this method can extract higher-level and more representative data features while retaining the characteristics of the data itself, thereby providing a more effective technical means for the construction and evaluation of the data indicator model.

[0141] Example 7

[0142] The present invention provides a method for constructing and evaluating a data indicator model, comprising:

[0143] The first training algorithm is a basic training algorithm for a generative adversarial network;

[0144] The second training algorithm includes a back propagation algorithm, a stochastic gradient descent algorithm and an adaptive algorithm.

[0145] In this embodiment, the basic training algorithm of the generative adversarial network is composed of a generator and a discriminator, and learns to generate data samples close to the real data distribution in an adversarial manner, which usually refers to the basic method of training GAN, including alternating training between the generator and the discriminator so that they can gradually improve their generation and discrimination capabilities. For example, in basic GAN training, the generator and the discriminator are trained alternately. The generator generates fake samples, the discriminator evaluates the authenticity of these fake samples, and provides feedback to the generator. The generator adjusts the generation strategy based on the feedback to generate more realistic samples as much as possible.

[0146] In this embodiment, back propagation is an optimization algorithm for training a neural network, which calculates the gradient of the loss function with respect to the network parameters and back propagates the gradient to update the parameters, thereby minimizing the loss function. For example, in a neural network, the difference (loss) between the output and the true value is calculated by forward propagation, and then the gradient of the loss function with respect to each parameter is calculated using the back propagation algorithm, and the parameters are updated according to the gradient to reduce the loss.

[0147] In this embodiment, stochastic gradient descent (SGD) is a gradient-based optimization algorithm used to minimize the objective function. It estimates the gradient of the entire data set by randomly selecting a small batch of training samples in each iteration, and updates the parameters to reduce the objective function. For example, when training a neural network, SGD randomly selects a small batch of training samples at each step, calculates the loss function gradient of these samples, and updates the network parameters to reduce the loss function;

[0148] In this embodiment, the adaptive algorithm is a type of optimization algorithm that dynamically adjusts the learning rate based on the information of the model parameter gradient to improve the efficiency and convergence of the model training. For example, Adam is a commonly used adaptive algorithm that dynamically adjusts the learning rate based on the first-order moment estimate and second-order moment estimate of the gradient of each parameter to achieve adaptive adjustment of different parameters.

[0149] The working principle and beneficial effects of the above technical solution are: by adopting the basic training algorithm of the generative adversarial network, the complex distribution characteristics of the data can be better captured, thereby improving the modeling ability of the data indicator model; by combining the back propagation algorithm, the model can converge faster during the training process, thereby improving the training efficiency of the model; the stochastic gradient descent algorithm can estimate the gradient by randomly sampling training samples and update the model parameters according to the gradient, thereby reducing the computational cost during the training process and being able to converge to the local optimal solution or the global optimal solution faster; the adaptive algorithm can dynamically adjust the learning rate and adaptively update the learning rate according to the parameter gradient, so that the model can better adapt to the gradient differences between different features, thereby improving the training stability and generalization ability of the model.

[0150] Example 8

[0151] An embodiment of the present invention provides a method for constructing and evaluating a data indicator model, which evaluates a second indicator feature based on a preset learning algorithm, including:

[0152] Determine the value range of each second indicator feature based on a preset learning algorithm;

[0153] Determining a range threshold based on the value ranges of all second indicator features;

[0154] Each second indicator feature is evaluated based on the range threshold and the value range of each second indicator feature.

[0155] In this embodiment, the value range of the second indicator feature, each indicator feature may have a certain value range, that is, possible values ​​within a certain range, for example, if we are considering the user's purchase behavior as one of the indicators, one of the second indicator features may be the monthly purchase amount. In this case, the value range may be a real number range from 0 to infinity.

[0156] In this embodiment, the range threshold is in the data indicator model, and some thresholds may be set according to the value range of the indicator feature to determine whether the performance of the indicator feature reaches a certain expected standard. For example, continuing to consider the example of user purchase behavior, if we want to define high-spending users as users whose monthly purchase amount exceeds US$1,000, then US$1,000 is a range threshold. If a user's monthly purchase amount exceeds this threshold, we can classify him as a high-spending user.

[0157] The working principle and beneficial effects of the above technical solution are: by using a preset learning algorithm, each second indicator feature is analyzed and processed to determine its possible value range, which helps to understand the range of data changes and distribution. Based on the range threshold and the value range of each second indicator feature, each feature is evaluated, which can more accurately understand the value range of each feature, thereby helping to more accurately evaluate the performance and effectiveness of the data indicator model. By determining the range threshold and evaluating the features, outliers can be discovered and processed in a timely manner, improving the quality and credibility of the data. This enables the model to better cope with various situations and data distributions.

[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing and evaluating a data indicator model, characterized in that: include: Step 1: extract key indicators from raw data of different data sources through a preset real-time processing process, perform feature analysis on the key indicators, and obtain first indicator features; Step 2: Obtaining an optimal initial data indicator model based on a preset algorithm and the first indicator feature; Step 3: Build a learning model based on the original data and the first indicator feature to obtain the second indicator feature; Step 4: Evaluate the second indicator feature based on a preset learning algorithm, and select the optimal feature combination based on the evaluation result; Step 5: Adjust the optimal initial data indicator model based on the optimal feature combination, and then build the final data indicator model; Wherein, obtaining the optimal initial data indicator model based on the preset algorithm and the first indicator feature includes: Performing feature analysis on the first indicator features to determine the feature type of each first indicator feature; Perform feature analysis on each preset model in the preset base model candidate pool to determine the model features of each preset base model; Perform feature matching on the feature types of all first indicator features and the model features of each preset base model; Screening the matching results to obtain a plurality of first base models corresponding to each first indicator feature whose matching degree is greater than a preset matching threshold; Combining a plurality of first base models corresponding to each first indicator feature based on a preset combination method to obtain a plurality of first models corresponding to each first indicator feature; Evaluate all first models and determine the optimal initial data indicator model based on the evaluation results; The score of each first base model in each first model is calculated based on a preset algorithm: ;in, is the score of the jth base model in the i-th first model, is the accuracy of the jth base model in the i-th first model, and , is the recall rate of the jth base model in the i-th first model, and , is the F1 score of the jth base model in the i-th first model, and , is the accuracy of the jth base model in the i-th first model, and , is the preset weight of the accuracy of the jth base model in the i-th first model, is the preset weight of the recall rate of the jth base model in the i-th first model, is the preset weight of the F1 score of the jth base model in the i-th first model, is the preset weight of the accuracy of the jth base model in the i-th first model, The preset weights for the interaction term between precision and recall; ;in, is the first penalty term for the score of the jth base model in the i-th first model, is the second penalty term for the score of the jth base model in the i-th first model, is the third penalty term for the score of the jth base model in the i-th first model, The first penalty The preset coefficient of The second penalty The preset coefficient of The third penalty The preset coefficient of A score for each corresponding first model is determined based on the score of each first base model.

2. The method for constructing and evaluating a data indicator model according to claim 1, characterized in that: Extract key indicators from raw data through preset real-time processing processes, including: Preprocess the raw data, obtain processed data, and group the processed data based on different data sources; Performing a first analysis on each set of processed data, thereby determining a representative field of each set of processed data; Perform a second analysis on a number of preset business requirements, and then obtain a requirement field corresponding to each preset business requirement; Match each requirement field with the representative field of each set of processed data; Determine a number of required fields corresponding to each group of processed data based on the matching results; Determine the key indicator type of each set of processing data based on a number of required fields corresponding to each set of processing data; Determine the extraction method corresponding to each key indicator type based on a preset key indicator type-extraction method database; Extract key indicators for each set of processed data based on key indicator type and corresponding extraction method.

3. The method for constructing and evaluating a data indicator model according to claim 1, characterized in that: The base models in the preset base model selection pool include: linear model, decision tree model, clustering model, neural network model, ensemble learning model, dimensionality reduction model, generation model and time series model.

4. The method for constructing and evaluating a data indicator model according to claim 1, characterized in that: A learning model is constructed based on the original data and the first indicator feature to obtain the second indicator feature, including: Training an adversarial network model based on the original data, the first indicator feature, and the first training algorithm; After the training is completed, generating a first data sample based on the adversarial network model; Constructing an encoder and a decoder based on the original data, the first indicator feature, and the second training algorithm; training an autoencoder model using the original data, the second training algorithm, and the first indicator feature; The first data sample is input into the autoencoder model to obtain the second indicator feature.

5. The method for constructing and evaluating a data indicator model according to claim 4, characterized in that: The first training algorithm is a basic training algorithm for a generative adversarial network; The second training algorithm includes a back propagation algorithm, a stochastic gradient descent algorithm and an adaptive algorithm.

6. The method for constructing and evaluating a data indicator model according to claim 4, characterized in that: The second indicator feature is evaluated based on a preset learning algorithm, including: Determine the value range of each second indicator feature based on a preset learning algorithm; Determining a range threshold based on the value ranges of all second indicator features; Each second indicator feature is evaluated based on the range threshold and the value range of each second indicator feature.