Artificial intelligence model monitoring method, system, and device, and storage medium

By deploying monitoring nodes on edge devices and using boundary constraint rules to verify and detect the input and output data of the AI ​​​​model, it solves the problems of data upload delay and non-real-time monitoring results in the existing technology, and realizes the real-time performance of the AI ​​​​model. Performance monitoring and data security.

WO2024221460A1PCT designated stage expired Publication Date: 2024-10-31SIEMENS AG +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/091845
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing AI model monitoring solutions have problems with data upload delays and non-real-time monitoring results on edge devices, making it difficult to directly notify operations engineers, affecting the performance monitoring efficiency of the AI ​​model.

Method used

Monitoring nodes are deployed on edge devices, and the input and output data of the AI ​​model are verified and detected by obtaining real-time data and based on the boundary constraint rules generated from the training data to achieve localized performance monitoring and avoid data uploading to the cloud.

Benefits of technology

It realizes real-time monitoring and performance detection of AI models on edge devices, ensures data security and real-time performance, and directly notifies operations engineers, improving monitoring efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023091845_31102024_PF_FP_ABST
    Figure CN2023091845_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in embodiments of the present invention are an artificial intelligence model monitoring method, system, and device, and a storage medium. The method comprises: obtaining real-time data of an edge device, wherein a trained artificial intelligence model is deployed in the edge device; determining first input data of the artificial intelligence model and first output data of the artificial intelligence model from the real-time data; verifying the first input data on the basis of a matching result between the first input data and a first boundary constraint rule; and / or testing the performance of the artificial intelligence model on the basis of a matching result between the first output data and a second boundary constraint rule, wherein the first boundary constraint rule and the second boundary constraint rule are determined on the basis of training data of the artificial intelligence model. The artificial intelligence model is monitored at the edge device, and real-time data does not need to be sent to the cloud; thus, the data security is ensured, and the real-time performance is also ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Monitoring method, system, device and storage medium for artificial intelligence model Technical Field

[0001] The present invention relates to the field of artificial intelligence (AI) technology, and in particular to a monitoring method, system, device, and storage medium for an AI model. Background Art

[0002] As the demand for AI models continues to increase across various industries, ensuring AI model performance is crucial when deployed on edge devices, such as industrial edge devices. Typically, deployed AI models may not work as expected due to factors such as degradation of production input data or differences in the distribution of production data compared to the data used during training. Therefore, monitoring AI models is a crucial component of edge AI.

[0003] Currently, some cloud providers or open source software packages offer AI monitoring solutions. However, they have limitations when applied to edge devices. These solutions require users to regularly upload training data and production data to the cloud, and monitoring results are only displayed on the cloud. Therefore, they have at least the following limitations: (1) Data must be uploaded and stored on the cloud, which is usually difficult for factories to accept; (2) Production data is sent to the cloud at certain intervals, so monitoring results are delayed; (3) Monitoring results are displayed on the cloud and are not directly notified to the factory's operations engineers, which is not conducive to the operations engineers understanding the monitoring results in a timely manner.

[0004] Summary of the Invention

[0005] The embodiments of the present invention provide a monitoring method, system, device and storage medium for an AI model.

[0006] In the first aspect, a monitoring method for an AI model is proposed. The method is applicable to edge devices and includes:

[0007] Obtaining real-time data from the edge device, wherein the edge device has a trained AI model deployed therein;

[0008] Determining first input data of the AI ​​model and first output data of the AI ​​model from the real-time data;

[0009] Verifying the first input data based on a match between the first input data and the first boundary constraint rule; and / or testing the performance of the AI ​​model based on a match between the first output data and the second boundary constraint rule;

[0010] The first boundary constraint rule and the second boundary constraint rule are determined based on the training data of the AI ​​model.

[0011] In the second aspect, a monitoring system for an AI model is provided. The system includes:

[0012] an edge device, wherein a trained AI model is deployed on the edge device;

[0013] A monitoring node is arranged in the edge device and is used to obtain real-time data of the edge device; determine first input data of the AI ​​model and first output data of the AI ​​model from the real-time data; verify the first input data based on a matching result between the first input data and a first boundary constraint rule; and / or detect the performance of the AI ​​model based on a matching result between the first output data and a second boundary constraint rule.

[0014] In a third aspect, an electronic device is provided. The electronic device includes:

[0015] processor;

[0016] a memory for storing executable instructions of the processor;

[0017] The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the above-mentioned AI model monitoring method.

[0018] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, and when the computer instructions are executed by a processor, the monitoring method of the AI ​​model as described above is implemented.

[0019] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements the above-mentioned AI model monitoring method when executed by a processor.

[0020] It can be seen from the above technical solution that in the embodiment of the present invention, real-time data of the edge device is obtained, wherein a trained AI model is deployed in the edge device; the first input data of the AI ​​model and the first output data of the AI ​​model are determined from the real-time data; based on the matching result of the first input data and the first boundary constraint rule, the first input data is verified; and / or, based on the matching result of the first output data and the second boundary constraint rule, the performance of the AI ​​model is tested; wherein the first boundary constraint rule and the second boundary constraint rule are determined based on the training data of the AI ​​model. It can be seen that by monitoring the AI ​​model at the edge device, there is no need to send real-time data to the cloud, which ensures data security. Moreover, by directly analyzing the real-time data at the edge device, real-time performance is also guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, so that those skilled in the art will understand the above and other features and advantages of the present invention more clearly. In the accompanying drawings:

[0022] FIG1 is a flowchart of a method for monitoring an AI model according to an embodiment of the present invention.

[0023] FIG2 is a flowchart of generating a first boundary constraint rule according to an embodiment of the present invention.

[0024] FIG3 is a flowchart of generating a second boundary constraint rule according to an embodiment of the present invention.

[0025] FIG4 is a flowchart of monitoring an AI model according to an embodiment of the present invention.

[0026] FIG5 is a structural diagram of a monitoring system of an AI model according to an embodiment of the present invention.

[0027] FIG6 is a schematic diagram of arranging monitoring nodes according to an embodiment of the present invention.

[0028] FIG7A is a schematic diagram of arranging monitoring nodes in series in a pipeline according to an embodiment of the present invention.

[0029] FIG7B is a schematic diagram illustrating arranging monitoring nodes in parallel in a pipeline according to an embodiment of the present invention.

[0030] FIG8 is a diagram showing an exemplary structure of an electronic device according to an embodiment of the present invention.

[0031] The accompanying drawings are numerals as follows: DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail with reference to the following examples.

[0033] For the sake of brevity and intuitiveness in description, the solution of the present invention is explained below by describing several representative implementations. A large number of details in the implementations are only used to help understand the solution of the present invention. However, it is obvious that the technical solution of the present invention may not be limited to these details when implemented. In order to avoid unnecessarily obscuring the solution of the present invention, some implementations are not described in detail, but only a framework is given. Hereinafter, "including" means "including but not limited to", and "according to..." means "at least according to..., but not limited to only according to...". Due to the language habits of Chinese, when the number of a component is not specifically specified below, it means that the component can be one or more, or can be understood as at least one.

[0034] An embodiment of the present invention provides a monitoring framework for an AI model. Monitoring nodes are generated in advance, and the monitoring nodes are used to process real-time data on edge devices containing AI models. Specifically, before deploying the AI ​​model, the user can provide training data of the AI ​​model as reference data on a local device (such as a PC). The training data is classified, and basic indicators, advanced indicators and / or user-defined indicators are selected for input data quality inspection of the AI ​​model and drift monitoring of the AI ​​model output. Then, boundary constraint rules are generated for the input data and output data of the AI ​​model, and these boundary constraint rules are deployed to the monitoring nodes in the pipeline. When the monitoring node is deployed on the edge device, the monitoring node processes real-time data according to basic indicators, advanced indicators and / or user-defined indicators and boundary constraint rules to generate monitoring results. At the same time, the monitoring results with reminder messages can be directly displayed to the operation engineer in the enterprise monitoring application interface.

[0035] FIG1 is a flow chart of a method for monitoring an AI model according to an embodiment of the present invention. The method is applicable to edge devices. As shown in FIG1 , the method includes:

[0036] Step 101: Obtain real-time data from an edge device, where a trained AI model is deployed on the edge device.

[0037] Here, edge devices are devices that provide entry points to the enterprise or service provider core network. Examples include routers, routing switches, integrated access devices (IADs), multiplexers, and various metropolitan area network (MAN) and wide area network (WAN) access devices.

[0038] Preferably, the edge device is implemented as an industrial edge device, such as: (1) industrial Ethernet switch; (2) industrial fixed Ethernet router; (3) industrial fixed Ethernet gateway; (4) industrial fixed cellular router; (5) industrial fixed cellular gateway; (6) industrial wireless router and access point; (7) industrial wireless gateway, etc.

[0039] Step 102: Determine first input data of the AI ​​model and first output data of the AI ​​model from the real-time data.

[0040] Here, the real-time data is classified to classify the first input data input to the AI ​​model and the first output data output from the AI ​​model.

[0041] Step 103: Verify the first input data based on the matching result between the first input data and the first boundary constraint rule.

[0042] The method may further include step 104 indicated by a dotted box.

[0043] Step 104: Based on the matching result between the first output data and the second boundary constraint rule, the performance of the AI ​​model is tested; wherein the first boundary constraint rule and the second boundary constraint rule are determined based on the training data of the AI ​​model.

[0044] In the process of Figure 1, steps 101 to 103 may be performed sequentially without performing step 104. Alternatively, steps 101 to 102 may be performed sequentially, followed by step 104, without performing step 103. Steps 101 to 102 may also be performed sequentially, and steps 103 and 104 may be performed simultaneously or at different times.

[0045] In one embodiment, the method includes: determining basic indicators of the input data of the AI ​​model; determining advanced indicators of the input data based on the basic indicators of the input data; determining second input data of the AI ​​model from the training data of the AI ​​model; determining the value range of the advanced indicators of the input data based on the second input data; and determining a first boundary constraint rule based on the value range of the advanced indicators of the input data.

[0046] Here, the basic indicators of input data represent the basic quality measures of the data input into the AI ​​model. They can be implemented as basic statistical characteristics of the input data, such as the minimum value in the input data, the maximum value in the input data, the type of input data, the required value of the input data, the mean of the input data, the median of the input data, the variance of the input data, the standard deviation of the input data, the absolute and relative numbers of the input data, the percentages and percentiles of the input data, the frequency and frequency of the input data, the proportions and ratios of the input data, the multiples and multiplications of the input data, the year-on-year and month-on-month changes in the input data, and the number of missing values ​​for a certain attribute in the input data, etc. Users can select basic indicators themselves, and default basic indicators can be automatically recommended for users. Basic indicators establish a monitoring baseline.

[0047] For more in-depth analysis, you can apply advanced metrics for monitoring and checking. Advanced metrics for input data are derived from one or more basic metrics of the input data. For example: the proportion of values ​​less than the average, the proportion of values ​​greater than the average, the proportion of values ​​outside the range of the basic metric determined by the minimum and maximum values, the missingness rate derived by dividing the number of missing values ​​for a certain attribute in the input data by the number of data points, and so on.

[0048] Obtain the specific values ​​of the second input data regarding the basic indicators, and determine the reasonable value range of the advanced indicators based on the specific values ​​of the basic indicators (the determination process can be assisted by human knowledge or automated determination) as a basis for judging the legality of subsequent input data.

[0049] The above exemplary descriptions are typical examples of basic indicators and advanced indicators. Those skilled in the art will appreciate that such descriptions are merely exemplary and are not intended to limit the scope of protection of the embodiments of the present invention.

[0050] In step 103, based on the matching result between the first input data and the first boundary constraint rule, verifying the first input data includes at least one of the following:

[0051] (1): When the value of the advanced indicator of the first input data is not within the value range, it is determined that the first boundary constraint rule is not matched, wherein the verification result indicates that the first input data is illegal.

[0052] For example, suppose the advanced metric is the proportion of values ​​below the average. If the value of the advanced metric, determined based on the second input data as reference data, is 2%, the range of the advanced metric is determined to be [0, 2%]. The first boundary constraint specifies that if the proportion of values ​​below the average is greater than 2%, the input data is considered invalid. Next, the proportion of values ​​below the average in the first input data is determined. If this proportion is greater than 2%, the first boundary constraint is determined to be unmatched and the first input data is considered invalid.

[0053] (2): When the value of the advanced indicator of the first input data is within the value range, it is determined that the first boundary constraint rule is matched, wherein the verification result indicates that the first input data is legal.

[0054] For example, assume the advanced metric is the proportion of values ​​greater than the average. If the value of the advanced metric, determined based on the second input data serving as reference data, is 5%, the range of the advanced metric is considered [0, 5%]. The first boundary constraint specifies that the input data is considered legal only if the proportion of values ​​greater than the average falls within the range [0, 5%]. Next, the proportion of values ​​greater than the average in the first input data is determined. For example, if this proportion is 3%, the first boundary constraint is determined to match, and the first input data is considered legal.

[0055] In one embodiment, it includes: determining basic indicators about the input data of the AI ​​model; determining advanced indicators about the input data based on the basic indicators of the input data; determining user-customized indicators of the input data based on the basic indicators of the input data and / or the advanced indicators of the input data; determining the second input data of the AI ​​model from the training data of the AI ​​model; based on the second input data, determining a first value range of the advanced indicators of the input data and a second value range of the user-customized indicators of the input data; and determining a first boundary constraint rule based on the first value range and the second value range.

[0056] It can be seen that the user-customized indicators of the input data are further determined based on the user basic indicators of the input data and / or the advanced indicators of the input data. The user-customized indicators of the input data can be indicators specified by the user himself. Among them: the user-customized indicators of the input data can be obtained by deducing the advanced indicators of a single or multiple input data, or can be obtained by deducing the basic indicators of a single or multiple input data and the advanced indicators of a single or multiple input data. For example, the basic indicator is the average value in the input data; the advanced indicator is the proportion of values ​​less than the average value and the proportion of values ​​greater than the average value; the user-customized indicator is the average value of the proportion of values ​​less than the average value and the proportion of values ​​greater than the average value.

[0057] The above exemplary descriptions are typical examples of user-customized indicators. Those skilled in the art will appreciate that such descriptions are merely exemplary and are not intended to limit the scope of protection of the embodiments of the present invention.

[0058] In step 103, based on the matching result between the first input data and the first boundary constraint rule, verifying the first input data includes at least one of the following:

[0059] (1): When the value of the advanced indicator of the first input data is not within the first value range, it is determined that the first boundary constraint rule is not matched, wherein the verification result indicates that the first input data is illegal;

[0060] (2): When the value of the advanced indicator of the first input data is within the first value range, determining that the first boundary constraint rule is matched, wherein the verification result indicates that the first input data is legal;

[0061] (3): When the value of the user-customized indicator of the first input data is not within the second value range, it is determined that the first boundary constraint rule is not matched, wherein the verification result indicates that the first input data is illegal;

[0062] (4): When the value of the user-customized indicator of the first input data is within the second value range, it is determined that the first boundary constraint rule is matched, wherein the verification result indicates that the first input data is legal.

[0063] In one embodiment, it includes: determining basic indicators of the output data of the AI ​​model; determining advanced indicators of the output data based on the basic indicators of the output data; determining second output data of the AI ​​model from the training data of the AI ​​model; determining the value range of the advanced indicators of the output data based on the second output data; and determining a second boundary constraint based on the value range of the advanced indicators of the output data.

[0064] Similarly, basic output data indicators represent the basic quality metrics of the AI ​​model's output data and can be implemented as basic statistical characteristics of the output data. For example, basic output data indicators may include: the minimum value in the output data, the maximum value in the output data, the type of output data, the required value of the output data, the mean value of the output data, the median of the output data, the variance of the output data, the standard deviation of the output data, the absolute and relative values ​​of the output data, the percentage and percentile of the output data, the frequency and frequency of the output data, the proportion and ratio of the output data, the multiple and multiplication of the output data, the year-on-year and month-on-month growth of the output data, and the number of missing values ​​for a certain attribute in the input data. Users can select basic output data indicators, and default basic output data indicators can be automatically recommended for users. Advanced output data indicators are indicators derived from one or more basic output data indicators. For example, the proportion of values ​​less than the mean, the proportion of values ​​greater than the mean, the proportion of values ​​outside the range of the basic indicator determined by the minimum and maximum values, and the missing rate derived by dividing the number of missing values ​​for a certain attribute in the input data by the number of data.

[0065] In step 104, based on the matching result between the first output data and the second boundary constraint rule, the performance of the AI ​​model is tested, including at least one of the following:

[0066] (1): When the value of the advanced indicator of the first output data is not within the value range, it is determined that the second boundary constraint rule is not matched, wherein the detection result indicates that the performance of the AI ​​model is unqualified.

[0067] (2): When the value of the high-level indicator of the first output data is within the value range, it is determined that the second boundary constraint rule is matched, wherein the detection result indicates that the performance of the AI ​​model is qualified.

[0068] In one embodiment, it includes: determining basic indicators of the output data of the AI ​​model; determining advanced indicators of the output data based on the basic indicators of the output data; determining user-customized indicators of the output data based on the basic indicators of the output data and / or the advanced indicators of the output data; determining the second output data of the AI ​​model from the training data of the AI ​​model; based on the second output data, determining a first value range of the advanced indicators of the output data and a second value range of the user-customized indicators of the output data; and determining a second boundary constraint based on the first value range and the second value range.

[0069] It can be seen that the user-customized indicators of the output data are further determined based on the user basic indicators of the output data and / or the advanced indicators of the output data. The user-customized indicators of the output data can be indicators specified by the user himself. Among them: the user-customized indicators of the output data can be obtained by deducing the advanced indicators of a single or multiple output data, or can be obtained by deducing the basic indicators of a single or multiple output data and the advanced indicators of a single or multiple output data. For example, the basic indicator of the output data is the average value of the output data; the advanced indicator of the output data is the ratio of values ​​less than the average value and the ratio of values ​​greater than the average value; the user-customized indicator of the output data is the average value between the ratio of values ​​less than the average value and the ratio of values ​​greater than the average value, and so on.

[0070] In step 104, based on the matching result between the first output data and the second boundary constraint rule, the performance of the AI ​​model is tested, including at least one of the following:

[0071] (1): When the value of the high-level indicator of the first output data is not within the first value range, it is determined that the second boundary constraint rule is not matched, wherein the detection result indicates that the performance of the AI ​​model is unqualified;

[0072] (2): When the value of the high-level indicator of the first output data is within the first value range, determining that the second boundary constraint rule is matched, wherein the detection result indicates that the performance of the AI ​​model is qualified;

[0073] (3): When the value of the user-customized indicator of the first output data is not within the second value range, it is determined that the second boundary constraint rule is not matched, wherein the detection result indicates that the performance of the AI ​​model is unqualified;

[0074] (4): When the value of the user-customized indicator of the second input data is within the second value range, it is determined that the second boundary constraint rule is matched, wherein the detection result indicates that the performance of the AI ​​model is qualified.

[0075] In one embodiment, the method includes: when the verification result indicates that the first input data is illegal, refusing to input the first input data into the AI ​​model.

[0076] It can be seen that when the first input data is illegal, the first input data can be refused to be input into the AI ​​model, thereby ensuring the performance of the AI ​​model.

[0077] In one embodiment, the method includes: when the verification result indicates that the first input data is illegal, continuing to input the first input data into the AI ​​module.

[0078] It can be seen that when the first input data is illegal, the first input data can continue to be input into the AI ​​model to ensure real-time performance.

[0079] In one embodiment, the method includes: when the verification result indicates that the first input data is illegal, determining based on a user-triggered instruction whether to refuse to input the first input data into the AI ​​model or to continue inputting the first input data into the AI ​​model.

[0080] It can be seen that when the first input data is illegal, the subsequent execution steps can be determined based on the user's selection, thereby enriching the user's selection possibilities. In one embodiment, the method includes: when the verification result indicates that the first input data is illegal, issuing a first reminder message for prompting that the first input data is illegal, and the first reminder message is adapted to be displayed on the display interface; when the detection result indicates that the performance of the AI ​​model is unqualified, issuing a second reminder message for prompting that the performance of the AI ​​model is unqualified, and the second reminder message is adapted to be displayed on the display interface.

[0081] The first reminder message can include the specific values ​​of the basic indicators, advanced indicators, or user-customized indicators used in determining the first boundary constraint rule in the first input data, thereby helping users understand why the data is invalid. The second reminder message can include the specific values ​​of the basic indicators, advanced indicators, or user-customized indicators used in determining the second boundary constraint rule in the first output data, thereby helping users understand why the model performance failed to meet standards. Thus, monitoring results with reminder messages can be directly displayed to operations engineers in the enterprise monitoring application interface.

[0082] FIG2 is a flow chart of generating a first boundary constraint rule according to an embodiment of the present invention. As shown in FIG2 , the method includes:

[0083] Step 201: Classify the input data of the AI ​​model from the training data of the AI ​​model. Here, the training data of the AI ​​model is the data used in the training process of the AI ​​model. The AI ​​model is trained based on the training data to obtain a trained AI model.

[0084] Step 202: Determine basic indicators, advanced indicators and / or user-customized indicators of input data.

[0085] Step 203: Parse the input data to obtain specific values ​​of the basic indicators. Based on the specific values ​​of the basic indicators, determine the value ranges of the advanced indicators and / or user-customized indicators.

[0086] Step 204: Generate a first boundary constraint rule based on the value ranges of the advanced indicators and / or user-customized indicators. The first boundary constraint rule specifies that if the values ​​of the advanced indicators and / or user-customized indicators of the input data (generally real-time input data of the AI ​​model) used for subsequent reference verification are not within the respective value ranges of the advanced indicators and / or user-customized indicators, the input data is considered illegal.

[0087] FIG3 is a flow chart of generating a second boundary constraint rule according to an embodiment of the present invention. As shown in FIG3 , the method includes:

[0088] Step 301: Classify the output data of the AI ​​model from the training data of the AI ​​model. Here, the training data of the AI ​​model is the data used in the training process of the AI ​​model, and the AI ​​model is trained based on the training data to obtain a trained AI model.

[0089] Step 202: Determine basic indicators, advanced indicators and / or user-customized indicators of output data.

[0090] Step 203: Analyze the output data to obtain specific values ​​of the basic indicators. Based on the specific values ​​of the basic indicators, determine the value ranges of the advanced indicators and / or user-customized indicators.

[0091] Step 204: Generate a second boundary constraint rule based on the value range of the advanced indicator and / or the user-customized indicator. The second boundary constraint rule specifies that if the value of the advanced indicator and / or the user-customized indicator of the output data (generally the real-time output data of the AI ​​model) used for subsequent reference verification is not within the respective value range of the advanced indicator and / or the user-customized indicator, the performance of the AI ​​model is unqualified.

[0092] In the processes of Figures 2 and 3, training data is used as reference data for generating the first and second boundary constraint rules. The training data has already been used to train the AI ​​model, so the first and second boundary constraint rules generated using the training data as reference data are more accurate and better match the model performance. After the first and second boundary constraint rules are generated, they can be used to monitor the AI ​​model.

[0093] Figure 4 is a flow chart of monitoring an AI model according to an embodiment of the present invention. As shown in Figure 4, the method includes:

[0094] Step 401: Acquire real-time data from an edge device, where a trained AI model is deployed on the edge device.

[0095] Step 402: Classify the real-time data to determine the input data of the AI ​​model and the output data of the AI ​​model.

[0096] Step 403: Verify the input data based on the matching result between the input data and the first boundary constraint rule.

[0097] Step 404: Based on the matching result between the output data and the second boundary constraint rule, the performance of the AI ​​model is tested.

[0098] Step 405: When the verification result indicates that the input data is illegal, a first reminder message indicating that the input data is illegal is displayed on the display interface; when the detection result indicates that the performance of the AI ​​model is unqualified, a second reminder message indicating that the performance of the AI ​​model is unqualified is displayed on the display interface. Preferably, the specific values ​​of the basic indicators, advanced indicators, and / or user-customized indicators of the input data, as well as the specific values ​​of the basic indicators, advanced indicators, and / or user-customized indicators of the output data, are further displayed to facilitate user error location.

[0099] FIG5 is a structural diagram of an AI model monitoring system according to an embodiment of the present invention. The AI ​​model monitoring system 500 includes:

[0100] Edge device 501, where a trained AI model 502 is deployed;

[0101] The monitoring node 503 is arranged in the edge device 501 and is used to obtain real-time data of the edge device 501; determine the first input data of the AI ​​model 502 and the first output data of the AI ​​model 502 from the real-time data; verify the first input data based on the matching result of the first input data and the first boundary constraint rule; and / or detect the performance of the AI ​​model 502 based on the matching result of the first output data and the second boundary constraint rule.

[0102] For example: one input end of the monitoring node 503 is connected to the input data node 504 of the AI ​​model 502 to obtain the first input data from the input data node 504; the other input end of the monitoring node 503 is connected to the output data node 505 of the AI ​​model 502 to obtain the first output data from the output data node 505.

[0103] Preferably, the AI ​​model monitoring system 500 includes a display interface 506 for displaying a first reminder message indicating that the first input data is illegal, a second reminder message indicating that the performance of the artificial intelligence model is unqualified, and specific values ​​of basic indicators, advanced indicators and / or user-customized indicators of the input data and output data, so as to facilitate users to locate errors.

[0104] In one embodiment, the monitoring node 503 includes a first part and a second part; the first part is arranged at the input end of the AI ​​model 502, and is used to verify the first input data based on the matching result between the first input data and the first boundary constraint rule; the second part is arranged at the output end of the AI ​​model 502, and is used to detect the performance of the artificial intelligence model based on the matching result between the first output data and the second boundary constraint rule.

[0105] It can be seen that by splitting the monitoring node 503, the monitoring node 503 can be flexibly deployed.

[0106] Figure 6 is a schematic diagram illustrating the deployment of monitoring nodes according to an embodiment of the present invention. In Figure 6, a trained AI model is deployed in inference node 603. The AI ​​model's input data is sent to preprocessing component 601. Preprocessing component 601 performs preprocessing on the input data (e.g., data cleaning, data feature extraction, etc.). The preprocessed input data enters first portion 602, which is split out by monitoring node 503. First portion 602 verifies the preprocessed input data based on the matching results of the preprocessed input data with the first boundary constraint rule. First portion 602 sends the verification result and the preprocessed input data to inference node 603. If the verification result indicates that the preprocessed input data is invalid, the AI ​​model does not perform inference on the preprocessed input data. If the verification result indicates that the preprocessed input data is valid, the AI ​​model performs inference on the preprocessed input data and obtains output data as the inference result. The output data is provided to second portion 603, which is split out by monitoring node 503. Second portion 603 tests the performance of the AI ​​model based on the matching results of the output data with the second boundary constraint rule and sends the test results.

[0107] The monitoring node containing the first boundary constraint rule and the second boundary constraint rule and the trained AI model can be deployed in a pipeline, such as an industrial field pipeline.

[0108] In one embodiment, the first part is connected in series between the input end of the AI ​​model and the data source of the first input data. Preferably, the first part is used to perform at least one of the following:

[0109] (1): When the verification result indicates that the first input data is illegal, the first input data is rejected from being input into the AI ​​model;

[0110] (2): When the verification result indicates that the first input data is illegal, continue to input the first input data into the AI ​​model;

[0111] (3): When the verification result indicates that the first input data is illegal, a determination is made based on a user-triggered instruction whether to refuse to input the first input data into the AI ​​model or to continue inputting the first input data into the AI ​​model.

[0112] Therefore, when the first input data is illegal, subsequent execution steps can be determined based on multiple strategies.

[0113] In one embodiment, the first portion is connected in parallel between the input of the AI ​​model and the data source of the first input data. Preferably, the first portion is configured to issue a first reminder message indicating that the first input data is illegal when the verification result indicates that the first input data is illegal, and the first reminder message is adapted to be displayed on a display interface.

[0114] The above details the deployment locations and processing strategies for the first part. Those skilled in the art will appreciate that this description is merely exemplary and does not limit the scope of protection of the embodiments of the present invention. For example, a hybrid method including serial and parallel connections may be used to deploy monitoring nodes, and so on.

[0115] Figure 7A is a schematic diagram of arranging monitoring nodes in a pipeline in series according to an embodiment of the present invention. In Figure 7A, monitoring node 701 obtains input data of a trained AI model, and the AI ​​model is deployed in inference node 702. Moreover, monitoring node 701 sends the verification result and input data to monitoring node 702. Monitoring node 702 can ignore the verification result and perform inference on the input data. Alternatively, when the verification result indicates that the input data is illegal, monitoring node 702 can stop inferring the input data. Monitoring node 701 sends the inference result to bus 703. Monitoring node 702 sends the inference result to bus 703.

[0116] Figure 7B is a schematic diagram illustrating the parallel arrangement of monitoring nodes in a pipeline according to an embodiment of the present invention. In Figure 7B , monitoring node 701 obtains input data from a trained AI model, which is deployed in inference node 702. Furthermore, monitoring node 701 transmits the verification results to bus 703. Inference node 702 obtains input data from the trained AI model and performs inference on the input data. Monitoring node 702 transmits the inference results to bus 703.

[0117] The embodiment of the present invention also proposes an electronic device with a processor-memory architecture. Figure 8 is an exemplary structural diagram of an electronic device according to an embodiment of the present invention. As shown in Figure 8, the electronic device 800 includes a processor 801, a memory 802, and a computer program stored on the memory 802 and runnable on the processor 801. When the computer program is executed by the processor 801, it implements any of the above AI model monitoring methods. Among them, the memory 802 can be specifically implemented as a variety of storage media such as an electrically erasable programmable read-only memory (EEPROM), a flash memory (Flash memory), and a programmable program read-only memory (PROM). The processor 801 can be implemented to include one or more central processing units or one or more field programmable gate arrays, wherein the field programmable gate array integrates one or more central processing unit cores. Specifically, the central processing unit or the central processing unit core can be implemented as a CPU, an MCU or a DSP, and so on.

[0118] It should be noted that not all steps and modules in the above processes and structure diagrams are required, and certain steps or modules can be omitted based on actual needs. The execution order of the steps is not fixed and can be adjusted as needed. The division of the modules is merely for the convenience of describing the functional division adopted. In actual implementation, a module can be implemented by multiple modules, and the functions of multiple modules can be implemented by the same module. These modules can be located in the same device or in different devices.

[0119] The hardware modules in each embodiment can be implemented mechanically or electronically. For example, a hardware module may include a specially designed permanent circuit or logic device (such as a dedicated processor, such as an FPGA or ASIC) for performing a specific operation. The hardware module may also include a programmable logic device or circuit (such as a general-purpose processor or other programmable processor) temporarily configured by software to perform a specific operation. As for whether to implement the hardware module mechanically, or using a dedicated permanent circuit, or using a temporarily configured circuit (such as configured by software), it can be decided based on cost and time considerations.

[0120] The above are only preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A monitoring method for an artificial intelligence model, characterized in that: The method is applicable to an edge device, and the method comprises: Acquiring (101) real-time data of the edge device, wherein a trained artificial intelligence model is deployed in the edge device; Determining (102) first input data of the artificial intelligence model and first output data of the artificial intelligence model from the real-time data; Based on the matching result between the first input data and the first boundary constraint rule, verifying the first input data (103); and / or, based on the matching result between the first output data and the second boundary constraint rule, detecting the performance of the artificial intelligence model (104); The first boundary constraint rule and the second boundary constraint rule are determined based on the training data of the artificial intelligence model.

2. The method according to claim 1, characterized in that: include: Determine the basic metrics of the input data for the AI ​​model; Determining advanced indicators of the input data based on basic indicators of the input data; Determining second input data for the artificial intelligence model from training data for the artificial intelligence model; Based on the second input data, determining a value range of a high-level indicator of the input data; Determining the first boundary constraint rule based on the value range of the advanced indicator of the input data; The checking (103) of the first input data based on the matching result between the first input data and the first boundary constraint rule includes at least one of the following: When the value of the advanced indicator of the first input data is not within the value range, it is determined that the first boundary constraint rule is not matched, wherein the verification result indicates that the first input data is illegal; When the value of the advanced indicator of the first input data is within the value range, it is determined that the first boundary constraint rule is matched, wherein the verification result indicates that the first input data is legal.

3. The method according to claim 1, characterized in that include: Identify basic metrics about the input data to the AI ​​model; Determining advanced indicators about the input data based on the basic indicators of the input data; Determining a user customized indicator of the input data based on the basic indicator of the input data and / or the advanced indicator of the input data; Determining second input data for the artificial intelligence model from training data for the artificial intelligence model; Based on the second input data, determining a first value range of the advanced indicator of the input data and a second value range of the user-customized indicator of the input data; Determining the first boundary constraint rule based on the first value range and the second value range; The checking (103) of the first input data based on the matching result between the first input data and the first boundary constraint rule includes at least one of the following: When the value of the advanced indicator of the first input data is not within the first value range, it is determined that the first boundary constraint rule is not matched, wherein the verification result indicates that the first input data is illegal; When the value of the advanced indicator of the first input data is within the first value range, it is determined that the first boundary constraint rule is matched, wherein the verification result indicates that the first input data is legal; When the value of the user customized indicator of the first input data is not within the second value range, it is determined that the first boundary constraint rule is not matched, wherein the verification result indicates that the first input data is illegal; When the value of the user customized indicator of the first input data is within the second value range, it is determined that the first boundary constraint rule is matched, wherein the verification result indicates that the first input data is legal.

4. The method according to claim 1, characterized in that: include: Determine the basic indicators of the output data of the artificial intelligence model; Determining advanced indicators of the output data based on the basic indicators of the output data; Determining second output data of the artificial intelligence model from the training data of the artificial intelligence model; Determining a value range of a high-level indicator of the output data based on the second output data; Determining the second boundary constraint based on a value range of the high-level indicator of the output data; The detecting (104) of the performance of the artificial intelligence model based on the matching result between the first output data and the second boundary constraint rule includes at least one of the following: When the value of the high-level indicator of the first output data is not within the value range, it is determined that the second boundary constraint rule is not matched, wherein the detection result indicates that the performance of the artificial intelligence model is unqualified; When the value of the high-level indicator of the first output data is within the value range, it is determined that the second boundary constraint rule is matched, wherein the detection result indicates that the performance of the artificial intelligence model is qualified.

5. The method according to claim 1, characterized in that: include: Determine the basic indicators of the output data of the artificial intelligence model; Determining advanced indicators of the output data based on the basic indicators of the output data; Determining a user customized indicator of the output data based on the basic indicator of the output data and / or the advanced indicator of the output data; Determining second output data of the artificial intelligence model from the training data of the artificial intelligence model; Based on the second output data, determining a first value range of the advanced indicator of the output data and a second value range of the user customized indicator of the output data; Determining the second boundary constraint based on the first value range and the second value range; The detecting (104) of the performance of the artificial intelligence model based on the matching result between the first output data and the second boundary constraint rule includes at least one of the following: When the value of the advanced indicator of the first output data is not within the first value range, it is determined that the second boundary constraint rule is not matched, wherein the detection result indicates that the performance of the artificial intelligence model is unqualified; When the value of the high-level indicator of the first output data is within the first value range, it is determined that the second boundary constraint rule is matched, wherein the detection result indicates that the performance of the artificial intelligence model is qualified; When the value of the user customized indicator of the first output data is not within the second value range, it is determined that the second boundary constraint rule is not matched, wherein the detection result indicates that the performance of the artificial intelligence model is unqualified; When the value of the user-customized indicator of the second input data is within the second value range, it is determined that the second boundary constraint rule is matched, wherein the detection result indicates that the performance of the artificial intelligence model is qualified.

6. The method according to any one of claims 1 to 5, characterized in that Include at least one of the following: When the verification result indicates that the first input data is illegal, refusing to input the first input data into the artificial intelligence model; When the verification result indicates that the first input data is illegal, continue to input the first input data into the artificial intelligence model; When the verification result indicates that the first input data is illegal, it is determined based on a user-triggered instruction whether to refuse to input the first input data into the artificial intelligence model or to continue to input the first input data into the artificial intelligence model.

7. The method according to any one of claims 1 to 5, characterized in that include: When the verification result indicates that the first input data is illegal, a first reminder message is issued to indicate that the first input data is illegal, wherein the first reminder message is adapted to be displayed in a display interface; When the detection result indicates that the performance of the artificial intelligence model is unqualified, a second reminder message is issued to prompt that the performance of the artificial intelligence model is unqualified, and the second reminder message is adapted to be displayed in the display interface.

8. A monitoring system for an artificial intelligence model, characterized in that: include: An edge device (501), wherein a trained artificial intelligence model (502) is deployed in the edge device (501); A monitoring node (503) is arranged in the edge device (501) and is used to obtain real-time data of the edge device (501); determine first input data of the artificial intelligence model (502) and first output data of the artificial intelligence model (502) from the real-time data; and verify the first input data based on a matching result between the first input data and a first boundary constraint rule; And / or, based on the matching result between the first output data and the second boundary constraint rule, the performance of the artificial intelligence model (502) is tested.

9. The system according to claim 8, characterized in that The monitoring node (503) comprises a first part and a second part; The first part is arranged at the input end of the artificial intelligence model, and is used to verify the first input data based on the matching result between the first input data and the first boundary constraint rule; The second part is arranged at the output end of the artificial intelligence model, and is used to detect the performance of the artificial intelligence model based on the matching result between the first output data and the second boundary constraint rule.

10. The system according to claim 8, characterized in that The first part is connected in series between the input end of the artificial intelligence model and the data source of the first input data.

11. The system according to claim 10, characterized in that The first part is used to perform at least one of the following: When the verification result indicates that the first input data is illegal, refusing to input the first input data into the artificial intelligence model; When the verification result indicates that the first input data is illegal, continue to input the first input data into the artificial intelligence model; When the verification result indicates that the first input data is illegal, it is determined based on a user-triggered instruction whether to refuse to input the first input data into the artificial intelligence model or to continue to input the first input data into the artificial intelligence model.

12. The system according to claim 8, characterized in that The first part is connected in parallel between the input end of the artificial intelligence model and the data source of the first input data.

13. The system according to claim 12, characterized in that The first part is used to send a first reminder message for prompting that the first input data is illegal when the verification result indicates that the first input data is illegal, and the first reminder message is adapted to be displayed in the display interface.

14. An electronic device, characterized in that: include: Processor (801); A memory (802), configured to store executable instructions of the processor (801); The processor (801) is used to read the executable instructions from the memory (802) and execute the executable instructions to implement the monitoring method of the artificial intelligence model described in any one of claims 1-7.

15. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, a monitoring method for an artificial intelligence model according to any one of claims 1 to 7 is implemented.

16. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the monitoring method of the artificial intelligence model described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • AI-based intelligent diagnosis method, system and device

    CN110516837A

  • System and method for supporting artificial intelligence algorithm to perform automatic continuous updating

    CN113807487A

  • AI model updating method and device, computing equipment and storage medium

    CN114004328A

  • Model quality monitoring method and device, electronic equipment and storage medium

    CN114861909A

  • Robust artificial intelligence reasoning in edge computing devices

    CN115427968A