Model reliability analysis method, device, computer equipment and storage medium
By configuring multiple analysis dimensions and integrating analysis features, the problem of reliability analysis of artificial intelligence models is solved, and the accuracy of analysis and application reliability are improved.
Patent Information
- Application Number
- CN202410773763.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-17
AI Technical Summary
It is difficult to accurately analyze the reliability of artificial intelligence models with existing technology, which may lead to unexpected results and safety accidents in artificial intelligence applications. There is a lack of effective methods to improve the reliability of artificial intelligence technology applications.
By obtaining model information of the model to be analyzed, multiple analysis dimensions are configured, sub-information of each analysis dimension is determined, analysis features are integrated, model reliability analysis is performed, and reliability analysis results are generated.
It improves the accuracy of model reliability analysis, provides reliability data for the application of artificial intelligence technology, and enhances the reliability of artificial intelligence applications.
Smart Images

Figure CN118364257B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of model analysis, and in particular to a model reliability analysis method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] With the deep integration of artificial intelligence with various industries, enabling high-quality industrial development, artificial intelligence technology has gradually become a new engine for scientific and technological progress and social development. However, due to its opaque algorithm process, uncontrollable results, strong data dependence, and weak application scenario migration, artificial intelligence may cause various unexpected results and even safety accidents in the application process. Therefore, how to strengthen the reliability of artificial intelligence based on the root of artificial intelligence technology has become a key issue that cannot be ignored in the development of artificial intelligence technology.
[0003] Artificial intelligence technology usually relies on deep learning models, so reliability evaluation and analysis of the models used in artificial intelligence can indirectly determine the reliability of artificial intelligence. However, traditional reliability analysis is usually conducted on software, lacking technical means to accurately analyze the reliability of models used in artificial intelligence, and thus failing to improve the reliability of artificial intelligence technology applications. Summary of the invention
[0004] Based on this, it is necessary to provide a model reliability analysis method, device, computer equipment, computer-readable storage medium and computer program product that can accurately analyze the reliability of the model and thereby improve the reliability of the application of artificial intelligence technology in response to the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a model reliability analysis method, the method comprising:
[0006] Acquire model information of a model to be analyzed and multiple analysis dimensions configured for the model to be analyzed;
[0007] For each of the analysis dimensions, based on the sub-information corresponding to the analysis dimension in the model information, determining the analysis feature of the model to be analyzed in the analysis dimension;
[0008] Fusion of analysis features corresponding to each of the analysis dimensions to obtain model fusion features of the model to be analyzed;
[0009] Based on the model fusion feature, reliability analysis is performed on the model to be analyzed to obtain a reliability analysis result of the model to be analyzed.
[0010] In one embodiment, determining the analysis feature of the model to be analyzed in the analysis dimension based on the sub-information corresponding to the analysis dimension in the model information includes:
[0011] Determining at least two dimensional analysis indicators of the analysis dimension;
[0012] Determining, from the sub-information of the model information corresponding to the analysis dimension, indicator association information that matches each of the dimensional analysis indicators;
[0013] Determine the indicator characteristics of each of the dimensional analysis indicators based on the indicator association information matched by each of the dimensional analysis indicators;
[0014] The indicator characteristics of each of the dimensional analysis indicators are integrated to obtain the analysis characteristics of the model to be analyzed in the analysis dimension.
[0015] In one of the embodiments, the analysis dimension includes a model structure dimension;
[0016] The step of determining, from the sub-information of the model information corresponding to the analysis dimension, the indicator association information that matches each of the dimensional analysis indicators includes:
[0017] Obtaining an indicator identifier of each of the dimensional analysis indicators, and a preset association relationship between the indicator identifier and the structural information;
[0018] According to the preset association relationship, the model structure information matching the indicator identifier of each dimensional analysis indicator in the sub-information of the model information corresponding to the analysis dimension is respectively determined as the indicator association information of each dimensional analysis indicator.
[0019] In one of the embodiments, the analysis dimension includes a training data dimension and / or an application scenario dimension;
[0020] The step of determining, from the sub-information of the model information corresponding to the analysis dimension, the indicator association information that matches each of the dimensional analysis indicators includes:
[0021] Determine the indicator type of each dimensional analysis indicator;
[0022] For each dimensional analysis indicator, when the indicator type of the dimensional analysis indicator is parameter type, determining the indicator identifier of the dimensional analysis indicator;
[0023] From the sub-information of the model information corresponding to the analysis dimension, the model information matching the indicator identifier is determined as the indicator association information of the dimensional analysis indicator.
[0024] In one embodiment, the method further comprises:
[0025] In the case where the indicator type of the dimensional analysis indicator is a calculation type, determining an indicator calculation method of the dimensional analysis indicator;
[0026] Determining the indicator calculation parameters used in the indicator calculation method and parameter identifiers of the indicator calculation parameters;
[0027] From the sub-information of the model information corresponding to the analysis dimension, the model information matching the parameter identifier is determined as the indicator association information of the dimensional analysis indicator.
[0028] In one embodiment, performing reliability analysis on the model to be analyzed based on the model fusion feature to obtain a reliability analysis result of the model to be analyzed includes:
[0029] Preprocessing the model fusion features based on a preset feature processing method to obtain model input features;
[0030] The model input feature is input into a pre-configured reliability analysis model, reliability analysis is performed on the model to be analyzed, and a reliability analysis result of the model to be analyzed is obtained.
[0031] In a second aspect, the present application also provides a model reliability analysis device, the device comprising:
[0032] An information acquisition module, used to acquire model information of a model to be analyzed and multiple analysis dimensions configured for the model to be analyzed;
[0033] An analysis feature determination module, configured to determine, for each of the analysis dimensions, an analysis feature of the model to be analyzed in the analysis dimension based on the sub-information corresponding to the analysis dimension in the model information;
[0034] A feature fusion module, used to fuse the analysis features corresponding to each of the analysis dimensions to obtain a model fusion feature of the model to be analyzed;
[0035] The reliability analysis module is used to perform reliability analysis on the model to be analyzed based on the model fusion feature to obtain a reliability analysis result of the model to be analyzed.
[0036] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0038] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.
[0039] The above-mentioned model reliability analysis method, apparatus, computer equipment, storage medium and computer program product, after obtaining the model information of the model to be analyzed, can determine the sub-information corresponding to each analysis dimension from the model information according to the multiple analysis dimensions configured for the model to be analyzed, and determine the analysis features of the model to be analyzed in the corresponding analysis dimension based on the sub-information, and the analysis features can characterize the reliability of the model to be analyzed in the corresponding analysis dimension. Subsequently, the analysis features of each analysis dimension are fused to obtain the model fusion features of the model to be analyzed, and then the reliability analysis of the model to be analyzed is performed based on the model fusion features to obtain the reliability analysis results of the model to be analyzed. By analyzing the reliability of the model to be analyzed from multiple dimensions, the accuracy of the model reliability analysis can be effectively improved, and the obtained reliability analysis results can also provide analysis data for the subsequent use of artificial intelligence technology, thereby improving the application reliability of artificial intelligence technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] FIG1 is an application environment diagram of a model reliability analysis method in one embodiment;
[0041] FIG2 is a schematic diagram of a flow chart of a model reliability analysis method in one embodiment;
[0042] 3 is a schematic diagram of a process for determining analysis features of a model to be analyzed in an analysis dimension based on sub-information corresponding to the analysis dimension in model information in one embodiment;
[0043] 4 is a schematic diagram of a process for determining indicator association information matching each dimensional analysis indicator from sub-information of model information corresponding to the analysis dimension in one embodiment;
[0044] FIG5 is a schematic flow chart of a model reliability analysis method in another embodiment;
[0045] FIG6 is a schematic diagram of sample boundaries of training data in one embodiment;
[0046] FIG7 is a schematic diagram of sample clustering of training data in one embodiment;
[0047] FIG8 is a schematic flow chart of a model reliability analysis method in another embodiment;
[0048] FIG9 is a schematic diagram of a use process of a reliability analysis model in one embodiment;
[0049] FIG10 is a structural block diagram of a model reliability analysis device in one embodiment;
[0050] FIG. 11 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] The model reliability analysis method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the reliability analysis platform 102 communicates with the server 104 through the network. The data storage system can store the data that the reliability analysis platform 102 needs to process. The data storage system can be integrated on the reliability analysis platform 102, or it can be placed on the cloud or other network servers. The reliability analysis platform 102 obtains the model information of the model to be analyzed and the multiple analysis dimensions configured for the model to be analyzed from the server 104. For each analysis dimension, based on the sub-information corresponding to the analysis dimension in the model information, the analysis features of the model to be analyzed in the analysis dimension are determined, and the analysis features corresponding to each analysis dimension are fused to obtain the model fusion features of the model to be analyzed. Based on the model fusion features, the reliability analysis of the model to be analyzed is performed to obtain the reliability analysis results of the model to be analyzed. Among them, the reliability analysis platform can be integrated on a terminal or a server, and the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, portable wearable devices, and portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0053] In one embodiment, as shown in FIG. 2 , a model reliability analysis method is provided, and the method is applied to the reliability analysis platform 102 in FIG. 1 as an example for description, including the following steps:
[0054] S202: Obtain model information of the model to be analyzed and multiple analysis dimensions configured for the model to be analyzed.
[0055] Among them, the model to be analyzed can be a deep learning model with reliability analysis requirements, such as a deep learning model that is about to be installed on artificial intelligence technology or software for practical application. It is understandable that the actual usage scenarios are different, and the corresponding models to be analyzed are also different. For example, the model to be analyzed can be an image recognition model in an image recognition scenario, or a path prediction model in a path prediction scenario, or an anomaly detection model in an anomaly monitoring scenario. For ease of understanding, the following is an example of an image recognition model in an image recognition scenario.
[0056] The model information of the model to be analyzed is information data used to reflect the relevant conditions of the model construction process and the model use process of the model to be analyzed. It can be understood that the model information of the model to be analyzed may include model internal information and model external information, wherein the model internal information may be model structure information, which is used to reflect the model architecture of the model to be analyzed, such as the composition of each layer of the model. The model external information may be model training data information and / or model scenario information, and the model training data information is information data used to reflect the relevant conditions of the training data used by the model to be analyzed during model training, such as the actual training data, the size of the training data, the number of positive and negative samples in the training data, etc. The model scenario information is information data used to reflect the relevant conditions of the training scenario and application scenario of the model to be analyzed, such as the participating elements of the training scenario, the participating elements of the application scenario, the scenario type of the application scenario, the memory requirements of the scenario, etc.
[0057] Specifically, the reliability analysis platform can respond to the reliability analysis instruction for the model to be analyzed, obtain the model information of the model to be analyzed from the server, and multiple analysis dimensions configured for the model to be analyzed. Among them, the number and dimension range of the analysis dimensions configured for the model to be analyzed can be determined by the designer according to the actual analysis requirements. For example, when it is necessary to consider the model reliability of the model to be analyzed from the aspects of model training data, model structure, model application scenario, model maintenance, etc., the corresponding analysis dimensions can be configured for the model to be analyzed as training data dimension, application scenario dimension, model structure dimension, and model maintenance dimension.
[0058] In one of the embodiments, a user may trigger a reliability analysis instruction for a model to be analyzed on a reliability analysis platform based on a user terminal.
[0059] In one embodiment, the multiple analysis dimensions configured for the model to be analyzed may be targeted configuration dimensions of the model to be analyzed, which are directly provided by the user. For example, the user uploads the model information of the model to be analyzed and the analysis dimensions configured for the model to be analyzed to the server. The reliability analysis platform can directly obtain the model information of the model to be analyzed and the multiple analysis dimensions configured for the model to be analyzed from the server.
[0060] In one of the embodiments, the multiple analysis dimensions configured for the model to be analyzed may be universal dimensions pre-set on the reliability analysis platform, which are pre-determined by the designer and configured on the reliability analysis platform. After the reliability analysis platform obtains the model information of the model to be analyzed from the server, the reliability analysis platform may directly call the pre-configured analysis dimension information to determine the multiple analysis dimensions configured for the model to be analyzed.
[0061] S204: For each analysis dimension, based on the sub-information corresponding to the analysis dimension in the model information, determine the analysis features of the model to be analyzed in the analysis dimension.
[0062] Among them, each analysis dimension will have corresponding sub-information in the model information, and the sub-information can also be considered as model information associated with the analysis dimension, which can characterize the model situation of the model to be analyzed in the analysis dimension. Therefore, based on the sub-information corresponding to the analysis dimension in the model information, the analysis features that can characterize the dimensional reliability of the model to be analyzed in the corresponding analysis dimension can be determined. Taking the analysis dimension including the training data dimension, the model structure dimension and the application scenario dimension as an example, the analysis features can include the training data features, the model structure features and the application scenario features.
[0063] Specifically, for each analysis dimension, the reliability analysis platform can first determine the sub-information corresponding to the analysis dimension from the model information, and then determine the analysis features of the model to be analyzed in the analysis dimension based on the sub-information corresponding to the analysis dimension. It can be understood that in order to better integrate the analysis features of each analysis dimension, the expression form of the analysis features can be determined as a feature vector.
[0064] In one of the embodiments, the reliability analysis platform obtains a dimension identifier of the analysis dimension, and based on a preset correspondence between model information and the dimension identifier, determines model information in the model information that matches the dimension identifier of the analysis dimension as sub-information of the analysis dimension.
[0065] S206, fusing the analysis features corresponding to each analysis dimension to obtain a model fusion feature of the model to be analyzed.
[0066] Specifically, after the reliability analysis platform determines the analysis features of the model to be analyzed in each analysis dimension based on the sub-information corresponding to the analysis dimension in the model information, it can fuse the analysis features corresponding to each analysis dimension based on a preset feature fusion method to obtain the model fusion feature of the model to be analyzed. It can be understood that the model fusion feature of the model to be analyzed can reflect the model situation of the model to be analyzed in each analysis dimension.
[0067] In one of the embodiments, the analysis feature is an analysis feature vector, and the reliability analysis platform can splice the analysis feature vectors corresponding to each analysis dimension to obtain a model fusion feature vector of the model to be analyzed.
[0068] S208, performing reliability analysis on the model to be analyzed based on the model fusion feature to obtain a reliability analysis result of the model to be analyzed.
[0069] Specifically, after obtaining the model fusion features of the model to be analyzed, the reliability analysis platform can perform reliability analysis on the model to be analyzed based on the model fusion features to obtain the reliability analysis results of the model to be analyzed.
[0070] In one of the embodiments, the reliability analysis platform can perform reliability analysis on the model to be analyzed based on preset feature reliability analysis rules and model fusion features to obtain reliability analysis results of the model to be analyzed.
[0071] In order to improve the efficiency and accuracy of reliability analysis, in another embodiment, S208, reliability analysis is performed on the model to be analyzed based on the model fusion feature to obtain a reliability analysis result of the model to be analyzed, including:
[0072] The model fusion features are preprocessed based on a preset feature processing method to obtain model input features, and the model input features are input into a preconfigured reliability analysis model to perform reliability analysis on the model to be analyzed to obtain reliability analysis results of the model to be analyzed.
[0073] Among them, the preset feature processing method is a feature processing method used to preprocess the model fusion features so that the processed model input features can better conform to the usage specifications of the reliability analysis model. For example, the feature processing method can be abnormal feature removal processing, normalization processing, etc.
[0074] The reliability analysis model is a configuration model used to perform accurate quantitative reliability analysis on the model to be analyzed based on the model input features, and then output the reliability quantitative analysis results. It can be obtained by the designer through pre-training based on the reliability analysis training data. It can be understood that this embodiment does not limit the model type of the reliability analysis model. The reliability analysis model can be any computing depth model, such as a deep neural network model (DNN), an attention model (Attention), a recurrent neural network model (RNN), a graph neural network model (GNN), a graph attention model (GAT), a convolutional neural network model (CNN), etc.
[0075] Specifically, after obtaining the model fusion features of the model to be analyzed, the reliability analysis platform preprocesses the model fusion features based on a preset feature processing method to obtain the model input features, and then inputs the model input features into the pre-configured reliability analysis model, and performs reliability analysis on the model to be analyzed through the reliability analysis model to obtain the reliability analysis results of the model to be analyzed. By using the reliability analysis model to automatically analyze the reliability of the model to be analyzed, the accuracy and efficiency of the reliability analysis of the model to be analyzed can be effectively improved.
[0076] In one embodiment, the reliability analysis result of the model to be analyzed output by the reliability analysis model is a quantitative analysis result, that is, the reliability analysis value of the model to be analyzed. The reliability analysis platform can determine the reliability of the model to be analyzed in the corresponding artificial intelligence application scenario, such as very reliable, generally reliable, unreliable, etc., based on the reliability analysis value of the model to be analyzed and the correspondence between the preset analysis value and the reliability.
[0077] In the above-mentioned model reliability analysis method, after obtaining the model information of the model to be analyzed, the sub-information corresponding to each analysis dimension can be determined from the model information according to the multiple analysis dimensions configured for the model to be analyzed, and the analysis characteristics of the model to be analyzed in the corresponding analysis dimension can be determined based on the sub-information. The analysis characteristics can characterize the reliability of the model to be analyzed in the corresponding analysis dimension. Subsequently, the analysis characteristics of each analysis dimension are fused to obtain the model fusion characteristics of the model to be analyzed, and then the reliability analysis of the model to be analyzed is performed based on the model fusion characteristics to obtain the reliability analysis results of the model to be analyzed. By analyzing the reliability of the model to be analyzed from a multi-dimensional level, the accuracy of the model reliability analysis can be effectively improved, and the obtained reliability analysis results can also provide analysis data for the subsequent use of artificial intelligence technology, thereby improving the application reliability of artificial intelligence technology.
[0078] In one embodiment, as shown in FIG. 3 , in S204 , based on the sub-information corresponding to the analysis dimension in the model information, determining the analysis features of the model to be analyzed in the analysis dimension includes:
[0079] S302, determining at least two dimensional analysis indicators of the analysis dimension.
[0080] Among them, the dimension classification index is an indicator parameter used to reflect the reliability of the model to be analyzed in the corresponding analysis dimension, which can be predetermined by the designer based on the factors that may affect the reliability of the model to be analyzed in the corresponding analysis dimension. It can be understood that different analysis dimensions have different corresponding dimension analysis indicators. For example, in the model structure dimension, the corresponding dimension analysis indicator can be the number of basic networks contained in the model, the network learning rate, etc. In the training data dimension, the corresponding dimension analysis indicator can be the positive and negative sample ratio, the sample data scale, the sample boundary distance, etc.
[0081] Specifically, the reliability analysis platform may determine at least two dimensional analysis indicators that match the analysis dimensions according to a predetermined correspondence between the analysis dimensions and the analysis indicators.
[0082] S304: Determine, from the sub-information of the model information corresponding to the analysis dimension, the indicator association information that matches the analysis indicator of each dimension.
[0083] The indicator association information is information data used to obtain indicator characteristics of the corresponding dimensional analysis indicators.
[0084] Specifically, after determining the analysis indicators of each dimension of the analysis dimension, the reliability analysis platform needs to determine the indicator characteristics of each dimensional analysis indicator in order to obtain the analysis characteristics of the analysis dimension. Therefore, the reliability analysis platform determines the indicator association information that matches each dimensional analysis indicator from the sub-information corresponding to the analysis dimension of the previously determined model information. The indicator characteristics of the dimensional analysis indicator can be determined through the indicator association information of the dimensional analysis indicator.
[0085] In one embodiment, the reliability analysis platform can determine, based on a preset correspondence between the indicator identifier and the model information, from the sub-information of the model information corresponding to the analysis dimension, the model information that matches the indicator identifier of the dimensional analysis indicator as the indicator association information of the dimensional analysis indicator.
[0086] S306: Determine the indicator characteristics of each dimensional analysis indicator based on the indicator association information matched by each dimensional analysis indicator.
[0087] Among them, the indicator characteristics are characteristic data used to characterize the model status of the model to be analyzed under the current indicator parameters. Since the dimensional analysis indicators are determined based on the influencing factors in the corresponding analysis dimensions that may affect the reliability of the model to be analyzed, the indicator characteristics can also reflect the model status of the model to be analyzed under the influencing factors.
[0088] Specifically, after obtaining the indicator association information matching each dimensional analysis indicator, the reliability analysis platform can determine the indicator characteristics of each dimensional analysis indicator based on the indicator association information matching each dimensional analysis indicator. It can be understood that the reliability analysis platform can directly or indirectly obtain the indicator characteristics of the dimensional analysis indicator based on the indicator association information of the dimensional analysis indicator.
[0089] For example, the reliability analysis platform can directly extract information features from the indicator association information to determine the indicator features of the dimensional analysis indicators. Alternatively, the reliability analysis platform can also indirectly obtain the indicator features of the dimensional analysis indicators by performing corresponding information processing on the indicator association information, such as calculation processing, statistical processing, etc.
[0090] S308, integrating the indicator characteristics of the analysis indicators in each dimension to obtain the analysis characteristics of the model to be analyzed in the analysis dimension.
[0091] Specifically, after obtaining the indicator characteristics of each analysis indicator in each dimension, the reliability analysis platform can fuse the characteristics of each indicator to obtain the analysis characteristics of the model to be analyzed in the analysis dimension.
[0092] In one of the embodiments, the indicator characteristics of the analysis indicators in each dimension are indicator characteristic vectors, and the reliability analysis platform can splice the indicator characteristic vectors to obtain the analysis characteristic vector of the model to be analyzed in the analysis dimension.
[0093] In the above embodiment, by determining the indicator characteristics of the dimensional analysis indicators in each analysis dimension, and then obtaining the analysis characteristics of the corresponding analysis dimension based on the indicator characteristics, it is possible to take into account the model conditions of the model to be analyzed under the reliability influencing factors that may exist in each analysis dimension when performing reliability analysis on the model to be analyzed, thereby further improving the accuracy of the reliability analysis of the model to be analyzed.
[0094] The indicator association information is key information used to determine the indicator characteristics of the dimensional analysis indicators. The determination of the indicator association information is a key step in the reliability analysis process of the model to be analyzed. The determination process of the indicator association information will be described below through several embodiments.
[0095] In one embodiment, the analysis dimension includes a model structure dimension. S304, determining indicator association information matching each dimensional analysis indicator from the sub-information of the model information corresponding to the analysis dimension, including:
[0096] Obtain the indicator identifier of each dimensional analysis indicator, as well as the preset association relationship between the indicator identifier and the structural information. According to the preset association relationship, from the sub-information of the model information corresponding to the analysis dimension, the model structural information that matches the indicator identifier of each dimensional analysis indicator is determined as the indicator association information of each dimensional analysis indicator.
[0097] Among them, the network structure of the deep neural network model determines the technical performance of artificial intelligence technology to a large extent, and is also a core factor affecting the reliability of the model's use and the reliability of the application of artificial intelligence technology. Therefore, by conducting reliability analysis on the model to be analyzed from the dimension of model structure, the accuracy and representativeness of the reliability analysis results of the model to be analyzed can be improved.
[0098] Reliability analysis of the model to be analyzed from the model structure dimension can be achieved by layering and disassembling the model network structure of the model to be analyzed. For example, the impact of the model structure dimension on the reliability of the model to be analyzed can be determined from the perspectives of neurons, activation functions, network layers, etc. Therefore, the analysis indicators of each dimension of the model structure dimension are generally indicator parameters that reflect the model network structure.
[0099] In one embodiment, the dimensional analysis indicators included in the model structure dimension may include but are not limited to the number of basic neural networks included in the model to be analyzed, parameter vectors related to each network structure, neural network optimizer, neural network learning rate, normalization times, batch size, etc.
[0100] The sub-information of the model information corresponding to the model structure dimension may be model structure information, such as model configuration information of the model to be analyzed. Since the dimensional analysis indicators included in the model structure dimension are all structural information indicators corresponding to the corresponding model structure, the indicator association information of each dimensional analysis indicator in the model dimensional structure can be directly obtained from the model structure information.
[0101] The preset association relationship between the indicator identifier and the structural information can be used to characterize the corresponding relationship between the dimensional analysis indicator and the structural information, and can be obtained by the designer by binding the indicator identifier with the information identifier of the structural information in advance.
[0102] Specifically, when the analysis dimension is the model structure dimension, the reliability analysis platform can determine the indicator identifier of each dimensional analysis indicator of the model structure dimension, as well as the preset association relationship between the pre-set indicator identifier and the structural information, search for the preset association relationship based on the indicator identifier, and determine the structural information corresponding to the information identifier that matches the indicator identifier as the indicator association information of the dimensional analysis indicator corresponding to the indicator identifier.
[0103] In the above embodiment, for each dimensional analysis indicator in the model structure dimension, the indicator association information of each dimensional analysis indicator can be quickly determined from the structural model information directly through the preset association relationship between the indicator identifier and the structural information, which effectively improves the determination efficiency and accuracy of the indicator association information of the dimensional analysis indicator. The reliability analysis of the model to be analyzed from the model structure dimension can also improve the accuracy and representativeness of the reliability analysis results of the model to be analyzed.
[0104] In another embodiment, the analysis dimension may further include a training data dimension and / or an application scenario dimension. As shown in FIG4 , S304 determines, from the sub-information of the model information corresponding to the analysis dimension, indicator association information that matches each of the analysis indicators of each dimension, including:
[0105] S402, determining the indicator type of each dimensional analysis indicator.
[0106] Among them, the indicator type is a type parameter obtained by classifying the analysis indicators of each dimension according to the determination method of the indicator characteristics. It can be understood that the indicator type can be divided into calculation type and parameter type. The calculation type indicator refers to the indicator that needs to calculate and process the indicator-related information to obtain the indicator characteristics, that is, the indirect indicator. The parameter type indicator refers to the indicator that can directly obtain the indicator characteristics by extracting the characteristics of the indicator-related information, which can also be considered as a direct indicator.
[0107] S404: for each dimensional analysis indicator, when the indicator type of the dimensional analysis indicator is a parameter type, determine the indicator identifier of the dimensional analysis indicator.
[0108] Specifically, when the reliability analysis platform determines that the indicator type of the dimensional analysis indicator is parameter type, it can be determined that the dimensional analysis indicator is the same as the dimensional analysis indicator of the model structure dimension. There is a direct correspondence between the indicator characteristics of the dimensional analysis indicator and the indicator association information. Therefore, the reliability analysis platform can first determine the indicator identifier of the dimensional analysis indicator, and then directly obtain the indicator association information that matches the indicator identifier based on the indicator identifier.
[0109] S406: Determine the model information that matches the indicator identifier from the sub-information of the model information corresponding to the analysis dimension as the indicator association information of the dimension analysis indicator.
[0110] Specifically, the reliability analysis platform can call the preset association relationship between the pre-set indicator identifier and the structural information, search for the preset association relationship according to the indicator identifier of the dimensional analysis indicator, and determine the model information corresponding to the information identifier matching the indicator identifier as the indicator association information of the dimensional analysis indicator corresponding to the indicator identifier.
[0111] In this embodiment, when the indicator type of the dimensional analysis indicator is parameter type, through the preset association relationship between the indicator identifier and the structural information, the indicator association information associated with each dimensional analysis indicator in the training data dimension and / or the application scenario dimension can be quickly determined from the model information, thereby effectively improving the efficiency and accuracy of determining the indicator association information of the dimensional analysis indicator.
[0112] In another embodiment, as shown in FIG5 , the model reliability analysis method further includes:
[0113] S502: When the indicator type of the dimensional analysis indicator is a calculation type, determine the indicator calculation method of the dimensional analysis indicator.
[0114] The indicator calculation method of the dimensional analysis indicator is a method for calculating and processing the indicator-related data of the dimensional analysis indicator to obtain the corresponding indicator characteristics. It can be understood that different dimensional analysis indicators have different corresponding indicator calculation methods, and the calculation parameters used in the indicator calculation method are also different.
[0115] Specifically, when determining that the indicator type of the dimensional analysis indicator is calculation type, the reliability analysis platform can determine the indicator calculation method that matches the indicator identifier of the dimensional analysis indicator based on the indicator identifier of the dimensional analysis indicator and the correspondence between the pre-set indicator identifier and the indicator calculation method.
[0116] S504, determining the indicator calculation parameters used in the indicator calculation method and the parameter identifiers of the indicator calculation parameters.
[0117] Specifically, after determining the indicator calculation method of the dimensional analysis indicator, the reliability analysis platform may determine the indicator calculation parameters used in the indicator calculation method and determine the parameter identifiers of the indicator calculation parameters.
[0118] It can be understood that the specific number and type of the indicator calculation parameters included in the indicator calculation method are related to the specific calculation method, and the indicator calculation method may include multiple or single indicator calculation parameters.
[0119] S506: Determine the model information that matches the parameter identifier from the sub-information of the model information corresponding to the analysis dimension as the indicator association information of the dimension analysis indicator.
[0120] Specifically, after obtaining the parameter identifier of the indicator calculation parameter, the reliability analysis platform can determine the model information that matches the parameter identifier respectively from the sub-information of the model information corresponding to the analysis dimension as the indicator association information of the corresponding dimension analysis indicator.
[0121] In this embodiment, when the indicator type of the dimensional analysis indicator is calculation type, by first determining the indicator calculation method of the dimensional analysis indicator, and then determining the indicator association information of the dimensional analysis indicator based on the indicator calculation parameters involved in the indicator calculation method, the accuracy and efficiency of determining the indicator association information can be effectively improved.
[0122] Taking the analysis dimension as the training data dimension as an example, in one embodiment, the sub-information of the model information corresponding to the training data dimension is the training data information. The dimensional analysis indicators of the training data dimension may include sample boundaries, sample boundary distances, positive and negative sample ratios, confusion sample ratios, sample clustering coefficients, training data scales, noise label ratios, etc.
[0123] Among them, the training data scale can be considered as a parameter-type indicator. Therefore, the reliability analysis platform can determine the information that matches the indicator identifier from the training data information based on the indicator identifier of the training data scale, that is, the size of the storage space occupied by the training data, which is the indicator-related information of the training data scale. Subsequently, the training data scale of the model to be analyzed can be determined directly through feature extraction based on the size of the storage space occupied by the training data.
[0124] In addition to the scale of training data, sample boundaries, sample boundary distances, positive-negative sample ratios, proportions of confused samples, sample clustering coefficients, and noise label proportions are all computational indicators. Therefore, the reliability analysis platform needs to first determine the indicator calculation method for the dimensional analysis indicator, and then determine the information that matches the parameter identifier from the training data information based on the parameter identifier of the calculation parameter to be used in the indicator calculation method as the indicator association information for the dimensional analysis indicator. For example, the indicator calculation method corresponding to the positive-negative sample ratio is to calculate the ratio of the number of positive samples to the number of negative samples in the training data. The calculation parameters involved in the indicator calculation method are the number of positive samples and the number of negative samples. The reliability analysis platform can determine the information that matches the parameter identifier from the training data information as the indicator association information for the positive-negative sample ratio based on the parameter identifier of the number of positive samples and the parameter identifier of the number of negative samples.
[0125] Taking the analysis dimension as an example, in one embodiment, the sub-information of the model information corresponding to the application scenario dimension is the scenario information. The dimensional analysis indicators of the application scenario dimension may include the difference in the number of scenario elements, the similarity of the scenario, the real-time requirements of the scenario, the memory requirements of the scenario, etc.
[0126] Among them, the scene real-time requirements and scene memory requirements can be considered as parameter indicators. Therefore, the reliability analysis platform can determine the information that matches each indicator identifier from the scene information according to the respective indicator identifiers of the scene real-time requirements and scene memory requirements, that is, the scene real-time requirement data and scene requirement memory, etc., which are the indicator association information of the scene real-time requirements and scene memory requirements. Subsequently, the scene real-time requirements and scene memory requirements of the model to be analyzed can be directly determined based on the scene real-time requirement data and scene requirement memory through feature extraction.
[0127] In addition to the scene real-time requirements and scene memory requirements, the difference in the number of scene elements and the scene similarity are all calculation indicators. Therefore, the reliability analysis platform needs to first determine the indicator calculation method of the dimension analysis indicator, and then determine the information that matches the parameter identifier from the scene information based on the parameter identifier of the calculation parameter to be used in the indicator calculation method as the indicator association information of the dimension analysis indicator. For example, the indicator calculation method for the difference in the number of scene elements is to calculate the difference between the number of scene elements in the training scene and the number of scene elements in the application scene. The calculation parameters involved in the indicator calculation method are the number of scene elements in the training scene and the number of scene elements in the application scene. The reliability analysis platform can determine the information that matches each parameter identifier from the scene information as the indicator association information for the difference in the number of scene elements based on the parameter identifier of the number of scene elements in the training scene and the parameter identifier of the number of scene elements in the application scene.
[0128] In the above embodiment, by dividing the indicator type for each dimensional analysis indicator, the corresponding indicator association information determination method can be directly determined according to the indicator type of the dimensional analysis indicator, and the indicator association information related to the dimensional analysis indicator can be quickly determined from the model information based on the corresponding indicator association information determination method, which effectively improves the accuracy and efficiency of determining the indicator association information. The reliability analysis of the model to be analyzed from the training data dimension and / or the application scenario dimension increases the analysis dimension of the reliability analysis and also improves the accuracy and representativeness of the reliability analysis results of the model to be analyzed.
[0129] Artificial intelligence technology relies on deep learning models. During the training process, deep learning models continuously learn the characteristic distribution of training data and continuously adjust the parameters of deep learning models to achieve feature learning. This learning method causes deep learning algorithms to be overly dependent on training data, causing the same neural network model to show large performance differences on different data. For example, convolutional neural networks used to recognize handwritten numbers are difficult to achieve digital recognition performance when directly applied to recognize text and letters. In addition, deep learning models have complex structures and often use a large number of network layers, hidden neurons, and various activation functions. Deep neural networks show the best performance in the data approximation process, but due to multiple nonlinear transformations, pruning and other behaviors in the calculation process, the calculation process of deep learning models is opaque, and sometimes the outputs generated by the same input data are not necessarily equal. All of the above can be classified as artificial intelligence reliability issues.
[0130] Research on traditional software reliability has a long history and is relatively mature in terms of technical methods, but there is less research on artificial intelligence reliability methods, and currently there is no universal and accurate means to evaluate artificial intelligence reliability in the field of software reliability.
[0131] Based on this, in one embodiment, a model reliability analysis method is provided, which is illustrated by taking the application of the method to reliability analysis of an image recognition model as an example. In the reliability analysis platform, a trained reliability analysis model is pre-configured. The reliability analysis model can perform reliability analysis on the image recognition model from the dimensions of training data, model structure and application scenarios.
[0132] Among them, because the image recognition model always adjusts parameters by continuously learning or simulating the positive and negative sample features in the data during the training process, the accuracy of the reliability analysis of the image recognition model can be improved by performing reliability analysis on the image recognition model from the dimension of training data.
[0133] The dimensional analysis indicators of training data dimensions for image recognition models include sample boundaries, sample boundary distance, positive and negative sample ratio, confusion sample ratio, sample clustering coefficient, experimental data scale, noise label ratio, etc.
[0134] The following is a description of the analysis indicators of each dimension in the training data dimension:
[0135] First, the sample boundary. The sample boundary is the boundary that distinguishes the distribution of this sample from other samples to the greatest extent. As shown in FIG6 , the straight line MP and the curve NP represent the boundaries of sample A and sample B respectively. The sample boundary can be divided into four categories: straight line, curve, (hyper) plane, and (hyper) surface. These boundaries can be represented by corresponding function equations. The curve and surface functions of the present invention refer to Taylor polynomials, which are specifically expressed as follows:
[0136] Straight line boundaries: ;
[0137] Curved Boundary: ;
[0138] (Hyper) Plane: ;
[0139] (Hyper)Surfaces:
[0140] .
[0141] Where a, b, c, d, h are parameters, and x, y, z represent the coordinate data of the training image samples. N is the total number of samples, and n is the number of samples.
[0142] It can be understood that the simpler the sample boundary in the training image sample, the clearer the sample feature, the easier it is to learn the image recognition model, and the higher the reliability. Therefore, in this embodiment, the indicator calculation method of the sample boundary indicator can be as follows:
[0143]
[0144] Among them, e and f represent the sample boundary type, the default value is 1, and the value is {1,2,3,4}, corresponding to straight line, curve, plane, and interval respectively. i , exp i ] represents the number of variables and the highest power in the boundary function of type i. The default value is 0.
[0145] Second, the sample boundary distance. If the positive and negative features in the training image data are obvious, the distribution is far away, and the differences between different sample features are large, the image recognition model will have a better learning effect. The calculation formula of the sample boundary distance is defined as:
[0146] .
[0147] in, Indicates the distance between two boundaries. The distance can be calculated by distance, such as Euclidean distance, cosine distance, Mahalanobis distance, etc.; divergence, such as KL divergence, JS divergence, etc. Or it can be Wassertein distance, etc., which can be flexibly selected according to the specific situation.
[0148] Third, the ratio of positive and negative samples. During the training process of the image recognition model, if the number of negative samples in the training image data is in an absolute advantage, it is easy to flood the features, resulting in the image recognition model being unable to fully learn the features, or learning a large number of invalid features. Therefore, by testing the ratio of positive and negative samples in the training image data, it is also helpful to analyze the reliability of the image recognition model. Assuming that the positive sample in Figure 6 is A and the negative sample is B, the calculation method of the positive and negative sample ratio is defined as follows:
[0149] .
[0150] Among them, num_A and num_B represent the number of positive samples and negative samples in the training image data respectively.
[0151] Fourth, the proportion of confused samples. Confused samples are samples located between two sample boundaries. As shown in Figure 6, samples between sample boundaries MP and NP can be considered as confused samples. Since confused samples are easily confused by features during the learning process, the more confused samples there are, the more likely it is that the features learned by the image recognition model will be less clear, which will affect the reliability of the image recognition model. The calculation method for the proportion of confused samples is as follows:
[0152] .
[0153] Among them, c_A_num and c_B_num represent the number of samples of category A and category B outside their respective boundary lines, and num represents the number of all samples in the training image data.
[0154] Fifth, the sample clustering coefficient, observes the degree of clustering of samples of different categories. The more obvious the clustering, the easier it is for the features learned by the image recognition model to be distinguished from other categories, thereby improving the prediction, reasoning, and analysis accuracy of the image recognition model. As shown in Figure 7, the sample data a on the left makes it easier for the image recognition model to learn key features, while the sample data b on the right increases the difficulty of model learning and is likely to cause the image recognition model to misclassify, resulting in a decrease in reliability. The sample clustering coefficient is calculated as follows:
[0155] .
[0156] Among them, num_class represents the number of sample categories, C iThe clustering coefficient of type i samples can be calculated using methods such as average distance and average similarity. The specific calculation method can be determined according to the application scenario.
[0157] Sixth, the scale of training data. Image recognition model training requires a large number of image samples for learning. If the amount of data is too small, the image recognition model will not learn sufficiently, reducing the reliability of the image recognition model. The scale of training data is expressed as ,in The storage space occupied by the training data.
[0158] Seventh, the proportion of noise labels. Noise labels refer to labels that are incorrectly labeled in data. In the training process of the image recognition model, adding noise labels by artificial means appropriately will help improve the robustness of the image recognition model. The calculation method of the noise label proportion is as follows:
[0159] .
[0160] Among them, noise_num and label_num represent the number of noise labels and the total number of data respectively.
[0161] The network structure of the image recognition model determines the technical performance to a large extent, and is also a core factor affecting the reliability of the image recognition model. This embodiment disassembles the model network structure of the image recognition model in layers, and achieves a quantitative estimation of the impact of the neural network structure on the reliability of the image recognition model by calculating the impact of different neurons, activation functions, and network layers on reliability.
[0162] The following is a description of the analysis indicators of each dimension in the model structure dimension:
[0163] First, the number of basic neural networks included in the image recognition model, such as the number of fully connected networks, RNN, CNN, LSTM, GRU, Attention, GNN, etc.
[0164] Second, the parameter vector net related to each network structure j Represents the j-th network structure related parameter vector, which can be expressed as:
[0165]
[0166] Among them, net_class j Indicates the jth network type, with a value of [1, n], where 1 indicates a fully connected network, 2 indicates a recurrent neural network, 3 indicates a convolutional neural network, and so on. n indicates the range of the basic network that can be referenced and can be determined according to the specific application. layers j Indicates the number of network layers representing the jth network. j1Indicates the number of neurons in the jth network input layer. layer_num ji Indicates the number of neurons in the i-th layer of the j-th network. ji Indicates the activation function of the i-th layer of the j-th network, and its value is [1,n], where 1 represents the sigmoid function, 2 represents the relu function, 3 represents the softmax function, and so on. n represents the reference activation function range, which can be determined according to the specific application. j Represents the activation function of the last layer of the j-th network.
[0167] It should be noted that although there is an expression for the parameter vector related to the network structure, its essence is a concatenated vector composed of multiple parameter vectors, so it can also be considered a parametric indicator.
[0168] Third, the neural network optimizer optmizer takes values of [1, n], which respectively represent Batch Gradient Descent (BGD), Stochastic Gradient Descent (SGD), Adaptive gradient algorithm (Adagrad), Adam, PMSProp, etc.
[0169] Fourth, the neural network learning rate L_rate.
[0170] Fifth, the number of normalizations norm_num.
[0171] Sixth, batch number of baths.
[0172] The technical performance and reliability of image recognition models will show great differences in different application scenarios. In order to measure the reliability of image recognition models, it is necessary to consider the differences between application scenarios and test scenarios.
[0173] The following is a description of the analysis indicators of each dimension in the model structure dimension:
[0174] First, the difference in the number of participating elements between the application scenario and the test scenario, items_dif. For example, when using an image recognition model to identify animals in a laboratory, there may only be animals in the test scenario, but in the application scenario, there may be buildings, vehicles, plants, animals, etc.
[0175] Second, the similarity between the application scenario and the experimental scenario is expressed as follows:
[0176] .
[0177] Among them, Data_sim is the learning data similarity, Act_sim is the behavior similarity, Eval_sim is the evaluation similarity, etc. It can be understood that the learning data similarity, behavior similarity, evaluation similarity, etc. can all be obtained from the scene information of the image recognition model.
[0178] Third, the application scenario requires real-time time.
[0179] Fourth, the application scenario requires memory.
[0180] Based on the above three analysis dimensions, as shown in Figure 8, the model reliability analysis method specifically includes the following steps:
[0181] First, the reliability analysis platform obtains the model information of the image recognition model, and the pre-configured analysis dimensions are the training data dimension, the model structure dimension, and the application scenario dimension.
[0182] According to the model information, the sub-information corresponding to the training data dimension, the model structure dimension and the application scenario dimension in the model information is determined.
[0183] For the model structure dimension, the reliability analysis platform directly obtains the indicator identifier of each dimensional analysis indicator in the model structure dimension, as well as the preset association relationship between the indicator identifier and the structural information, searches for the preset association relationship based on the indicator identifier, and determines the structural information corresponding to the information identifier matching the indicator identifier as the indicator association information of the dimensional analysis indicator corresponding to the indicator identifier.
[0184] Then, the indicator correlation information of each dimensional analysis indicator is extracted to obtain the indicator characteristics of each dimensional analysis indicator. The indicator characteristics of each dimensional analysis indicator are spliced to obtain the analysis characteristics of the model structure dimension:
[0185]
[0186] For the training data dimension and the application scenario dimension, the reliability analysis platform first determines the indicator type of each dimensional analysis indicator in each analysis dimension, and then for each dimensional analysis indicator, when the indicator type of the dimensional analysis indicator is parameter type, determines the indicator identifier of the dimensional analysis indicator, calls the preset association relationship between the pre-set indicator identifier and the structural information, searches for the preset association relationship according to the indicator identifier of the dimensional analysis indicator, and determines the model information corresponding to the information identifier that matches the indicator identifier as the indicator association information of the dimensional analysis indicator corresponding to the indicator identifier. After obtaining the indicator association information, the reliability analysis platform will perform feature extraction on the indicator association information of the parameter type indicator to obtain the indicator features of the parameter type indicator.
[0187] When the indicator type of the dimensional analysis indicator is a calculation type, determine the indicator calculation method of the dimensional analysis indicator, determine the indicator calculation parameters used in the indicator calculation method based on the indicator calculation method, and the parameter identifier of the indicator calculation parameter, and determine the model information matching the parameter identifier from the sub-information corresponding to the analysis dimension of the model information as the indicator association information of the dimensional analysis indicator. Then the reliability analysis platform will perform indicator calculation based on the indicator calculation method corresponding to the calculation type indicator and the indicator association information of the calculation type indicator to obtain the indicator characteristics of the calculation type indicator.
[0188] After obtaining the indicator characteristics of the analysis indicators of each dimension in the training data dimension and the application scenario dimension, the reliability analysis platform can respectively splice the indicator characteristics of each analysis dimension to obtain the analysis characteristics of each analysis dimension.
[0189] Among them, the analysis characteristics of the training data dimension can be expressed as:
[0190] ;
[0191] The analysis characteristics of the application scenario dimension can be expressed as:
[0192] ;
[0193] After obtaining the analysis features of the training data dimension, model structure dimension, and application scenario dimension, i.e., the training data features, model structure features, and application scenario features, the reliability analysis platform can splice the training data features, model structure features, and application scenario features to obtain model fusion features, and then perform data preprocessing on the model fusion features to obtain model input features. The model input features are input into a pre-configured reliability analysis model, and reliability analysis is performed on the image recognition model to obtain the reliability analysis results of the image recognition model.
[0194] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0195] Based on the same inventive concept, the embodiment of the present application also provides a model reliability analysis device for implementing the model reliability analysis method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more model reliability analysis device embodiments provided below can refer to the limitations of the model reliability analysis method above, and will not be repeated here.
[0196] In one embodiment, as shown in FIG10 , a model reliability analysis device 1000 is provided, comprising: an information acquisition module 1001, an analysis feature determination module 1002, a feature fusion module 1003 and a reliability analysis module 1004, wherein:
[0197] The information acquisition module 1001 is used to acquire model information of a model to be analyzed and multiple analysis dimensions configured for the model to be analyzed.
[0198] The analysis feature determination module 1002 is used to determine, for each of the analysis dimensions, the analysis features of the model to be analyzed in the analysis dimension based on the sub-information corresponding to the analysis dimension in the model information.
[0199] The feature fusion module 1003 is used to fuse the analysis features corresponding to each of the analysis dimensions to obtain the model fusion features of the model to be analyzed.
[0200] The reliability analysis module 1004 is used to perform reliability analysis on the model to be analyzed based on the model fusion feature to obtain a reliability analysis result of the model to be analyzed.
[0201] In one embodiment, the analysis feature determination module is specifically used to: determine at least two dimensional analysis indicators of the analysis dimension; determine the indicator association information that matches each of the dimensional analysis indicators from the sub-information of the model information corresponding to the analysis dimension; determine the indicator characteristics of each of the dimensional analysis indicators based on the indicator association information that matches each of the dimensional analysis indicators; and fuse the indicator characteristics of each of the dimensional analysis indicators to obtain the analysis characteristics of the model to be analyzed in the analysis dimension.
[0202] In one embodiment, the analysis dimension includes a model structure dimension. The analysis feature determination module is specifically used to: obtain the indicator identifier of each of the dimensional analysis indicators, and the preset association relationship between the indicator identifier and the structure information; according to the preset association relationship, from the sub-information of the model information corresponding to the analysis dimension, the model structure information matching the indicator identifier of each of the dimensional analysis indicators is respectively determined as the indicator association information of each of the dimensional analysis indicators.
[0203] In one embodiment, the analysis dimension includes a training data dimension and / or an application scenario dimension. The analysis feature determination module is specifically used to: determine the indicator type of each of the dimensional analysis indicators; for each dimensional analysis indicator, if the indicator type of the dimensional analysis indicator is parameter type, determine the indicator identifier of the dimensional analysis indicator; from the sub-information of the model information corresponding to the analysis dimension, determine the model information matching the indicator identifier as the indicator association information of the dimensional analysis indicator.
[0204] In one embodiment, the model reliability analysis device further comprises:
[0205] The calculation method determination module is used to determine the indicator calculation method of the dimensional analysis indicator when the indicator type of the dimensional analysis indicator is a calculation type.
[0206] The parameter and identification determination module is used to determine the indicator calculation parameters used by the indicator calculation method and the parameter identifications of the indicator calculation parameters.
[0207] A matching module is used to determine the model information that matches the parameter identifier from the sub-information of the model information corresponding to the analysis dimension as the indicator association information of the dimensional analysis indicator.
[0208] In one embodiment, the reliability analysis module is specifically used to: pre-process the model fusion features based on a preset feature processing method to obtain model input features; input the model input features into a pre-configured reliability analysis model, perform reliability analysis on the model to be analyzed, and obtain reliability analysis results of the model to be analyzed.
[0209] Each module in the above model reliability analysis device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0210] In one embodiment, a computer device is provided, which may be a server integrated with a reliability analysis platform, and its internal structure diagram may be shown in FIG11. The computer device includes a processor, a memory, and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as model information, analysis dimensions, sub-information of analysis dimensions, analysis features, model fusion features, reliability analysis results, etc. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a model reliability analysis method is implemented.
[0211] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0212] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the specific steps in the above-mentioned model reliability analysis method embodiment when executing the computer program.
[0213] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the specific steps in the above-mentioned model reliability analysis method embodiment are implemented.
[0214] In one embodiment, a computer program product is provided, including a computer program, which implements the specific steps in the above-mentioned model reliability analysis method embodiment when executed by a processor.
[0215] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. In addition, the acquisition, storage, processing, and transmission of data are in compliance with relevant laws and regulations.
[0216] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0217] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0218] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A model reliability analysis method, characterized in that: The method comprises: Obtaining model information of a model to be analyzed and multiple analysis dimensions configured for the model to be analyzed; the analysis dimensions include at least two of a model structure dimension, a training data dimension, and an application scenario dimension; the model to be analyzed is a deep learning model; For each of the analysis dimensions, at least two dimensional analysis indicators of the analysis dimension are determined; the dimensional analysis indicators included in the model structure dimension include at least two of the number of basic neural networks included in the model to be analyzed, the parameter vectors related to each network structure, the neural network optimizer, the neural network learning rate, the number of normalizations, and the number of batches; the dimensional analysis indicators included in the training data dimension include at least two of the sample boundary, the sample boundary distance, the positive and negative sample ratio, the confusion sample ratio, the sample clustering coefficient, the training data scale, and the noise label ratio; the dimensional analysis indicators of the application scenario dimension include at least two of the difference in the number of scene elements, the scene similarity, the scene real-time requirements, and the scene memory requirements; Determining, from the sub-information of the model information corresponding to the analysis dimension, indicator association information that matches each of the dimensional analysis indicators; Based on the indicator association information matched by each of the dimensional analysis indicators, determining the indicator characteristics of each of the dimensional analysis indicators; the indicator characteristics are characteristic data used to characterize the model status of the model to be analyzed under the current indicator parameters; The indicator features of the respective dimensional analysis indicators are integrated to obtain the analysis features of the model to be analyzed in the analysis dimension; the analysis features are analysis feature vectors; Concatenating the analysis feature vectors corresponding to the analysis dimensions to obtain the model fusion features of the model to be analyzed; Based on the model fusion feature, reliability analysis is performed on the model to be analyzed to obtain a reliability analysis result of the model to be analyzed.
2. The method according to claim 1, characterized in that The analysis dimensions include model structure dimensions; The step of determining, from the sub-information of the model information corresponding to the analysis dimension, the indicator association information that matches each of the dimensional analysis indicators includes: Obtaining an indicator identifier of each of the dimensional analysis indicators, and a preset association relationship between the indicator identifier and the structural information; According to the preset association relationship, the model structure information matching the indicator identifier of each dimensional analysis indicator in the sub-information of the model information corresponding to the analysis dimension is respectively determined as the indicator association information of each dimensional analysis indicator.
3. The method according to claim 1 or 2, characterized in that: The analysis dimension includes a training data dimension and / or an application scenario dimension; The step of determining, from the sub-information of the model information corresponding to the analysis dimension, the indicator association information that matches each of the dimensional analysis indicators includes: Determine the indicator type of each dimensional analysis indicator; For each dimensional analysis indicator, when the indicator type of the dimensional analysis indicator is parameter type, determining the indicator identifier of the dimensional analysis indicator; From the sub-information of the model information corresponding to the analysis dimension, the model information matching the indicator identifier is determined as the indicator association information of the dimensional analysis indicator.
4. The method according to claim 3, characterized in that: The method further comprises: In the case where the indicator type of the dimensional analysis indicator is a calculation type, determining an indicator calculation method of the dimensional analysis indicator; Determining the indicator calculation parameters used in the indicator calculation method and parameter identifiers of the indicator calculation parameters; From the sub-information of the model information corresponding to the analysis dimension, the model information matching the parameter identifier is determined as the indicator association information of the dimensional analysis indicator.
5. The method according to claim 1, characterized in that The performing reliability analysis on the model to be analyzed based on the model fusion feature to obtain a reliability analysis result of the model to be analyzed includes: Preprocessing the model fusion features based on a preset feature processing method to obtain model input features; The model input feature is input into a pre-configured reliability analysis model, reliability analysis is performed on the model to be analyzed, and a reliability analysis result of the model to be analyzed is obtained.
6. A model reliability analysis device, characterized in that: The device comprises: An information acquisition module, used to acquire model information of a model to be analyzed, and multiple analysis dimensions configured for the model to be analyzed; the analysis dimensions include at least two of a model structure dimension, a training data dimension, and an application scenario dimension; the model to be analyzed is a deep learning model; The analysis feature determination module is used to determine at least two dimensional analysis indicators of each analysis dimension; the dimensional analysis indicators included in the model structure dimension include at least two of the number of basic neural networks included in the model to be analyzed, the parameter vectors related to each network structure, the neural network optimizer, the neural network learning rate, the number of normalizations, and the number of batches; the dimensional analysis indicators included in the training data dimension include at least two of the sample boundary, the sample boundary distance, the positive and negative sample ratio, the confusion sample ratio, the sample clustering coefficient, the training data scale, and the noise label ratio; the dimensional analysis indicators of the application scenario dimension include at least two of the difference in the number of scene elements, the scene similarity, the scene real-time requirement, and the scene memory requirement; from the sub-information of the model information corresponding to the analysis dimension, determine the indicator association information that matches each of the dimensional analysis indicators; based on the indicator association information that matches each of the dimensional analysis indicators, determine the indicator characteristics of each of the dimensional analysis indicators; the indicator characteristics are feature data used to characterize the model situation of the model to be analyzed under the current indicator parameters; the indicator characteristics of each of the dimensional analysis indicators are integrated to obtain the analysis characteristics of the model to be analyzed in the analysis dimension; the analysis characteristics are analysis feature vectors; A feature fusion module, used to concatenate the analysis feature vectors corresponding to the analysis dimensions to obtain the model fusion features of the model to be analyzed; The reliability analysis module is used to perform reliability analysis on the model to be analyzed based on the model fusion feature to obtain a reliability analysis result of the model to be analyzed.
7. The device according to claim 6, characterized in that The analysis dimension includes the model structure dimension; the analysis feature determination module is used to: obtain the indicator identifier of each of the dimensional analysis indicators, and the preset association relationship between the indicator identifier and the structure information; according to the preset association relationship, from the sub-information of the model information corresponding to the analysis dimension, the model structure information that matches the indicator identifier of each of the dimensional analysis indicators is respectively determined as the indicator association information of each of the dimensional analysis indicators.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Cited By
Artificial intelligence reliability evaluation system based on secure and trusted algorithm
CN120803772A
