Information processing apparatus and information processing program

The information processing device enhances interpretability by converting and visualizing the focus areas of models handling multiple data formats, addressing the limitations of existing XAI technologies.

JP2024126706AInactive Publication Date: 2024-09-20OMRON CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
JP2023035279
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing explainable AI (XAI) technologies do not effectively interpret models that handle multiple types of data with different formats, leading to poor interpretability in inference tasks.

Method used

An information processing device and program that convert multiple types of data into a learned model, generate a saliency map using a less-trained model, and display the map to enhance interpretability, allowing visualization of the model's focus areas for inference results.

Benefits of technology

Improves the interpretability of trained models by visually showing the model's focus areas for different data formats, enabling better understanding of inference processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024126706000001
    Figure 2024126706000001
Patent Text Reader

Abstract

To provide a method for improving interpretability of a trained model to which multiple kinds of data are input.SOLUTION: An information processing apparatus includes: a calculation unit which calculates an inference result by inputting one or multiple pieces of first data and one or multiple pieces of second data different in data format from the one or multiple pieces of first data to a first trained model; and a generation unit which generates a saliency map indicating a portion focused by the first trained model to calculate the inference result, for at least one piece of data of the one or multiple pieces of first data or the one or multiple pieces of second data.SELECTED DRAWING: Figure 16
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device and an information processing program. [Background technology]

[0002] Functions such as anomaly detection using trained models are being put to practical use in production sites. There is a technology that visualizes how such trained models make decisions. This type of technology is sometimes called Explainable AI (XAI).

[0003] For example, in an image recognition model, a technique is known that visualizes, with a saliency map, which part of the input is the basis for an inference between an input and a corresponding inference (for example, Non-Patent Document 1, etc.). Also, a technique is known that visualizes, with a graph, which data is the basis for an inference between an input and a corresponding inference between table data (for example, Non-Patent Document 2, etc.). [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] "Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization", Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, Dhruv Batra, 2017 IEEE International Conference on Computer Vision (ICCV), 22-29 October 2017,<URL:https: / / arxiv.org / abs / 1610.02391> [Non-Patent Document 2] "A Unified Approach to Interpreting Model Predictions", Scott M. Lundberg, Su-In Lee, Part of Advances in Neural Information Processing Systems 30 (NIPS 2017), Jan 24th, 2018, < URL:https: / / arxiv.org / abs / 1602.049 > Summary of the Invention [Problem to be solved by the invention]

[0005] No XAI like that described above has been disclosed for the task of inputting multiple types of data and performing inference.

[0006] One object of the present invention is to provide a method for improving the interpretability of a trained model to which multiple types of data are input. [Means for solving the problem]

[0007] An information processing device according to one example of the present invention includes a calculation unit that inputs one or more first data and one or more second data having a data format different from that of the one or more first data into a first trained model to calculate an inference result, and a generation unit that generates a saliency map indicating a portion focused on by the first trained model to calculate the inference result for at least one of the one or more first data and the one or more second data.

[0008] According to this configuration, by inputting a plurality of types of data with different data formats into the trained model, a multifaceted inference result can be calculated. In addition, a saliency map is generated that indicates the portion focused on by the trained model to calculate the inference result, which helps the user to understand how the input data is focused on.

[0009] Each of the one or more first data may include image data. Each of the one or more second data may include time-series data of scalar values. With this configuration, inference can be easily performed based on a trained model using multiple types of data collected from a manufacturing line or the like.

[0010] The generation unit may generate the saliency map by using a second trained model that is less well-trained than the first trained model. With this configuration, the interpretability of the first trained model can be further improved by using the second trained model that is less well-trained.

[0011] The information processing device may further include a display output unit that displays and outputs the saliency map. With this configuration, the saliency map can be visually provided to the user.

[0012] When the inference result is a predetermined value, the display output unit may display and output the saliency map together with the one or more first data and an image in which at least a part of the one or more first data is visualized. With this configuration, the data input to the first trained model can be compared with the saliency map to improve interpretability.

[0013] The first trained model may include a plurality of neural networks associated with one or more first data and one or more second data, respectively. With this configuration, a saliency map can be generated for each input data.

[0014] An information processing program according to another example of the present invention causes a computer to execute the steps of inputting one or more first data and one or more second data having a data format different from that of the one or more first data into a first trained model to calculate an inference result, and generating a saliency map indicating a portion focused on by the first trained model to calculate the inference result for at least one of the one or more first data and the one or more second data.

[0015] An information processing device according to yet another example of the present invention includes a learning unit that sequentially learns a model using a plurality of learning data including one or more first data and one or more second data having a data format different from the one or more first data, and sequentially stores data indicating a state of the model during learning, and a determination unit that determines a model in a state trained using a first number of learning data among the plurality of learning data as the first model, and determines a model in a state trained using a second number of learning data among the plurality of learning data that is smaller than the first number as the second model according to a user operation. The second model is associated with a generation unit for generating a saliency map based on the output of the second model. According to this configuration, a trained model that performs inference based on a plurality of types of data having different data formats can be generated. In addition, a saliency map for improving the interpretability of the generated trained model can be easily generated using the second model.

[0016] The determination unit may generate a user interface screen including a learning curve indicating a change in at least one of the error and the accuracy of the model with respect to the number of learning data used for learning, and determine a model in a selected state as the second model in response to a user operation on the user interface screen. According to this configuration, by providing a user interface screen including the learning curve, it is possible to assist the user in selecting an appropriate learning state as the second model.

[0017] The user interface screen may include at least one of an evaluation result of the accuracy of the model in a learning state specified by a user operation, a distribution of features output by the model in a learning state specified by a user operation, and a saliency map generated based on the output of the model in a learning state specified by a user operation. According to this configuration, by providing a user interface screen including various information, it is possible to assist the user in selecting an appropriate learning state as the second model. Effect of the Invention

[0018] According to the present invention, it is possible to improve the interpretability of a trained model to which multiple types of data are input. [Brief description of the drawings]

[0019] [Figure 1] FIG. 2 is a schematic diagram showing an example of a configuration of a classification model according to the present embodiment. [Diagram 2] FIG. 2 is a schematic diagram showing an example of data input to a classification model according to the present embodiment. [Diagram 3] 10A and 10B are diagrams for explaining an example of a process for generating sensor data according to the present embodiment. [Figure 4] 13 is a diagram showing an example of a saliency map generated by the XAI method according to the present embodiment. FIG. [Diagram 5] 13 is a diagram showing an example of a saliency map generated by the XAI method according to the present embodiment. FIG. [Figure 6] 1 is a schematic diagram showing an example of a hardware configuration of an information processing device according to an embodiment of the present invention; [Figure 7] FIG. 2 is a schematic diagram showing an example of a software configuration of an information processing device according to the present embodiment. [Figure 8] 11 is a diagram showing an example of a learning curve of a model used in a classification model and an XAI model according to the present embodiment. FIG. [Figure 9] 11 is a diagram for explaining an example of a process for generating an image XAI by the XAI technique according to the present embodiment. FIG. [Figure 10] 11 is a diagram for explaining an example of a process for generating sensor data XAI by the XAI technique according to the present embodiment. FIG. [Figure 11] 11 is a diagram for explaining an example of a process for generating low-level features by the XAI technique according to the present embodiment. FIG. [Figure 12] 11A and 11B are diagrams illustrating an example of accuracy calculated during model learning according to the present embodiment. [Figure 13] 11A to 11C are diagrams showing an example of a distribution of an image XAI, sensor data XAI, and low-level feature amounts calculated during model learning according to the present embodiment. [Figure 14] It is a diagram showing an example of a user interface screen provided by an information processing apparatus according to the present embodiment. [Figure 15] It is a schematic diagram showing an example of data sequentially stored in a database by an information processing apparatus according to the present embodiment during a learning process. [Figure 16] It is a diagram showing a configuration example of a model generated by an information processing apparatus according to the present embodiment through a learning process. [Figure 17] It is a flowchart showing a processing procedure of a learning process of an information processing apparatus according to the present embodiment. [Figure 18] It is a flowchart showing a processing procedure of an operation process of an information processing apparatus according to the present embodiment. [Figure 19] It is a schematic diagram showing an example of an operation screen of a production line according to the present embodiment.

Embodiments for Carrying Out the Invention

[0020] Embodiments of the present invention will be described in detail with reference to the drawings. For the same or corresponding parts in the drawings, the same reference numerals are given and the description thereof will not be repeated.

[0021] In this specification, the term "or" includes the meaning of "and" in addition to the meaning of "or".

[0022] <A. Application Examples> An example of a scene to which the present invention is applied will be described.

[0023] In the present embodiment, a learned model into which a plurality of types of data are input is used. A plurality of data having different data formats are input into the learned model. The plurality of types of data may be any combination of data, but hereinafter, an example using image data and sensor data will be described.

[0024] In this specification, "image data" includes data captured by any camera and image data generated by known methods. Image data is data that includes multiple values ​​arranged in a matrix, and can be considered a type of vector value.

[0025] In this specification, "sensor data" includes data collected or detected by any sensor (e.g., a temperature sensor or a pressure sensor), as well as data collected from an actuator (e.g., a motor or a cylinder) disposed on a production line, and data held by a control device for controlling the production line. Sensor data is, for example, a scalar value indicating some value. Sensor data is also distinguished from image data.

[0026] In this embodiment, one or more image data (first data) and one or more sensor data (second data) having a different data format from the one or more image data are input to the model or learned model.

[0027] 1 is a schematic diagram showing an example of the configuration of a classification model 2 according to this embodiment. As an example, a classification task for performing three-class classification into "OK" (normal), "NG Lv.1" (abnormality 1), and "NG Lv.2" (abnormality 2) based on one or more image data 20 collected from a production line and one or more sensor data 22 will be described.

[0028] FIG. 1 illustrates a classification model 2 to which one image data 20 and two sensor data 22-1 and 22-2 are input.

[0029] The classification model 2 may be any type of model. Assuming a classification task for image data 20, for example, VGG, ResNet, MobileNet, EfficientNet, or the like may be used as the classification model 2. Note that the classification model is not limited to the classification task, and may be any task. Also, a model according to the task may be selected.

[0030] More specifically, the classification model 2 includes a neural network 10 to which image data 20 is input, neural networks 12-1 and 12-2 to which sensor data 22-1 and 22-2 are input, and a fully-connected layer (FC) 14.

[0031] For example, the neural network 10 may be a two-dimensional Convolutional Neural Network (CNN), and the neural networks 12-1 and 12-2 may be one-dimensional CNNs.

[0032] Thus, the classification model 2 may include multiple neural networks associated with one or more image data 20 and one or more sensor data 22, respectively.

[0033] The inference result 30 output from the classification model 2 indicates, for example, a classification result. The inference result 30 may be a value (probability) indicating the possibility for each class. Note that abnormality 1 and abnormality 2 indicate different abnormality modes. The inference result 30 may be output to a control device disposed on a production line or the like.

[0034] Next, the process of generating a saliency map of classification model 2 using the XAI method will be described.

[0035] The saliency map generated by the XAI method visualizes the part focused on by the trained model to output the inference result. The saliency map includes, for example, a heat map corresponding to a two-dimensional array of image data 20, or a heat map corresponding to a time waveform of sensor data 22. Hereinafter, the saliency map generated from the neural network 10 to which the image data 20 is input is also referred to as "image XAI". Also, the saliency map generated from the neural network 12 to which the sensor data 22 is input is also referred to as "sensor data XAI".

[0036] Fig. 2 is a schematic diagram showing an example of data input to classification model 2 according to the present embodiment. Fig. 2 shows image data 20 and sensor data 22-1, 22-2 arranged for each class. The sensor data 22-1, 22-2 may be obtained by dividing time-series data collected or detected by the corresponding sensor for each cycle time.

[0037] Fig. 3 is a diagram for explaining a processing example for generating sensor data 22 according to the present embodiment. With reference to Fig. 3, for the time-series data of sensor data 22, frames 23 may be set for each manufacturing cycle unit (cycle time) based on information from a control device or the like. A portion of the time-series data corresponding to each frame 23 may be output as one piece of sensor data 22. That is, each piece of sensor data 22 may be time-series data of a scalar value.

[0038] If necessary, time synchronization may be performed between the image data 20 and the sensor data 22.

[0039] 4 and 5 are diagrams showing an example of a saliency map generated by the XAI method according to the present embodiment. As an example, Fig. 4 and Fig. 5 show an example of the result of a task to evaluate the state of the top seal based on image data 20 of a workpiece packaged by a pillow packaging machine, sensor data 22-1 indicating the temperature of the top seal blade of the pillow packaging machine, and sensor data 22-2 indicating the motor torque of the top seal shaft.

[0040] Fig. 4 shows an example of a saliency map generated by the XAI method from a properly trained classification model 2. Fig. 5 shows an example of a saliency map generated by the XAI method from a classification model 2 that is insufficiently trained.

[0041] More specifically, FIGS. 4 and 5 show the image data 20, the image XAI 40, and the sensor data XAI 42-1 and 42-2 arranged for each class. The sensor data XAI 42-1 and 42-2 visualize at which timing (period) among the time-series data of the sensor data 22 the data is focused.

[0042] Referring to FIG. 4, in the saliency map generated by the XAI method from the properly trained classification model 2, for each class, similar reactions are observed in the image XAI 40 and the sensor data XAI 42-1 and 42-2, indicating low interpretability of the classification model 2.

[0043] In contrast, referring to FIG. 5, it can be seen that in the saliency map generated by the XAI method from the classification model 2, characteristic parts are focused on for each class. That is, the saliency map generated by the XAI method from the classification model 2 with insufficient learning has high interpretability for the classification model 2.

[0044] In the present embodiment, it is based on the new finding that the interpretability of the learned model can be enhanced by using the saliency map generated by the XAI method from such a learned model with insufficient learning.

[0045] In the present embodiment, a classification model 2, which is a learned model for executing the original task, and an XAI model 4, which is a learned model used to generate the saliency map, are prepared. The classification model 2 is a model learned using a predetermined number of learning data. In contrast, the XAI model 4 is a model learned using a number of learning data less than the predetermined number. That is, the XAI model 4 is a learned model with insufficient learning compared to the classification model 2. The saliency map is generated using the XAI model 4.

[0046] <B. Hardware Configuration Example> Next, a hardware configuration example of the information processing apparatus 100 according to the present embodiment will be described.

[0047] 6 is a schematic diagram showing an example of a hardware configuration of information processing device 100 according to the present embodiment. With reference to FIG. 6, information processing device 100 is an example of a computer, and includes one or more processors 102, a memory 104, a storage 106, a display output unit 114, an input unit 116, and a communication circuit 118.

[0048] The one or more processors 102 execute computer-readable instructions contained in a program stored in the storage 106 to provide processes and functions as described below. When the one or more processors 102 execute computer-readable instructions contained in the program, a part or all of the program may be deployed in the memory 104.

[0049] The storage 106 is a non-transitory computer-readable medium. For example, an operating system (OS) 108 and a model generation program 110 are stored in the storage 106. The OS 108 includes computer-readable instructions for providing functions required by a computer and computer-readable instructions for generating an environment for executing the model generation program 110.

[0050] The model generation program 110 corresponds to the information processing program according to the present invention, and includes computer-readable instructions for generating trained models (classification model 2 and XAI model 4) as described below.

[0051] The model operation program 112 corresponds to the information processing program according to the present invention and includes computer-readable instructions for operating a trained model as described below.

[0052] The display output unit 114 displays and outputs the processing results by the processor 102. For example, the display output unit 114 displays and outputs a saliency map (image XAI40 and sensor data XAI42). The display output unit 114 may also display and output an operation screen of a manufacturing line (see FIG. 19).

[0053] Here, "display output" means outputting data or signals for displaying a display screen to a display that the information processing apparatus 100 has or a display existing outside the information processing apparatus 100.

[0054] The input unit 116 receives user operations. The input unit 116 may include, for example, a keyboard or a mouse, or may include an interface for connecting to a keyboard or a mouse. Further, the input unit 116 may include a device capable of touch operations, such as a touch panel integrated with the display.

[0055] The communication circuit 118 exchanges data with the control device 300 (see FIG. 7). In this specification, the term "processor" includes a hardwired circuit in addition to an arithmetic circuit that performs processing by executing computer-readable instructions such as a CPU (Central Processing Unit). Examples of hardwired circuits include an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).

[0056] <C. Software Configuration Example> Next, a software configuration example of the information processing apparatus 100 according to the present embodiment will be described.

[0057] FIG. 7 is a schematic diagram showing a software configuration example of the information processing apparatus 100 according to the present embodiment. Referring to FIG. 7, in a production line 400 or the like, one or more cameras 410 and one or more sensors 420-1, 420-2,... are arranged.

[0058] The control device 300 is a computer such as a PLC (Programmable Logic Controller). The control device 300 executes a control calculation according to a control program 310, and outputs a control command 350 to the manufacturing line 400 based on the execution result. The control device 300 reflects the inference result 30 from the information processing device 100 in the control calculation.

[0059] The control device 300 has a database 320 , and a data collection unit 322 collects image data 20 and sensor data 22 from the production line 400 and stores them in the database 320 .

[0060] The information processing device 100 collects one or more image data 20 and one or more sensor data 22 via the control device 300. More specifically, the control device 300 transmits the image data 20 and the sensor data 22 stored in the database 320 to the information processing device 100 at a predetermined cycle or upon receiving a predetermined trigger.

[0061] The information processing device 100 includes a database 150, an operation unit 160, a learning unit 166, a model determination unit 168, and an XAI visualization unit 170.

[0062] The database 150 corresponds to a storage unit, and may be realized using the storage 106 (FIG. 6), or may be realized using a storage device external to the information processing device 100, or a storage device connected via a network. The learning unit 166, the model determination unit 168, and the XAI visualization unit 170 may be realized by one or more processors 102 of the information processing device 100 executing the model generation program 110. The operation unit 160 may be realized by one or more processors 102 of the information processing device 100 executing the model operation program 112.

[0063] In addition to the image data 20 and the sensor data 22, the database 150 stores an image XAI 40, sensor data XAI 42, model parameters 165, and low-level features 180 that are generated by the XAI method in the learning process.

[0064] The operation unit 160 operates a classification model 2 that performs classification on image data 20, and an XAI model 4 that outputs an image XAI40 and sensor data XAI42 for the image data 20. More specifically, the operation unit 160 corresponds to a calculation unit, and inputs one or more pieces of image data 20 (first data) and one or more pieces of sensor data 22 (second data) to the classification model 2 to calculate an inference result 30.

[0065] The operation unit 160 also inputs one or more image data 20 (first data) and one or more sensor data 22 (second data) to the XAI model 4. The inference result output from the XAI model 4 is used for processing in the XAI visualization unit 170, as described below.

[0066] In this way, in the course of operation, image data 20 is input to the classification model 2, and an inference result 30 is output. The inference result 30 indicates, for example, a classification result. The inference result 30 is output to a control device or the like disposed on the production line 400 or the like.

[0067] The learning unit 166 learns models used for the classification model 2 and the XAI model 4. The learning unit 166 sequentially learns the models using multiple pieces of learning data (to which correct answer labels are assigned) including one or multiple pieces of image data 20 and one or multiple pieces of sensor data 22, and sequentially stores data (e.g., model parameters 165) indicating the state of the model during learning in the database 150 (storage unit).

[0068] In addition to the model parameters 165, the learning unit 166 may sequentially store the image data 20, the sensor data 22, the image XAI40, the sensor data XAI42, the model parameters 165, and the low-level features 180 in the database 150.

[0069] The model determination unit 168 corresponds to a determination unit, and generates a user interface screen as shown in Fig. 14 described later, and accepts user operations. The model determination unit 168 determines a model trained using a predetermined number (first number) of training data among the multiple training data as the classification model 2, and outputs a model trained using a number (second number) of training data among the multiple training data that is less than the predetermined number as the XAI model 4 in accordance with a user operation.

[0070] The XAI visualization unit 170 corresponds to a generation unit, and generates a saliency map indicating the parts that the classification model 2 focuses on to calculate the inference result 30 for at least one of one or more image data 20 (first data) and one or more sensor data 22 (second data).

[0071] For ease of explanation, the following describes the process of generating a saliency map for each piece of data input to classification model 2, but a saliency map (image XAI or sensor data XAI) does not need to be generated for all data input to classification model 2, and may be generated for at least some of the data.

[0072] The XAI visualization unit 170 generates one or more images XAI40 and one or more sensor data XAI42 (saliency map) based on the output when one or more image data 20 and one or more sensor data 22 (same as the input to the classification model 2) are input to the XAI model 4. More specifically, the XAI visualization unit 170 generates the image XAI40 and the sensor data XAI42 based on the inference result and feature map of the XAI model 4, etc.

[0073] During the operation process, the XAI visualization unit 170 generates one or more image XAIs 40 and one or more sensor data XAIs 42 (saliency maps) based on one or more pieces of image data 20 and the inference results obtained by inputting one or more pieces of sensor data 22 into the XAI model 4.

[0074] Note that FIG. 7 shows a configuration example in which the control device 300 is arranged separately from the information processing device 100, but the information processing device 100 and the control device 300 may be integrated.

[0075] Alternatively, the information processing device 100 may generate the learned models (classification model 2 and XAI model 4), and the control device 300 may operate the learned models (classification model 2 and XAI model 4). Therefore, in this specification, the "information processing device" may be any of the information processing device 100, the control device 300, and the combination of the information processing device 100 and the control device 300.

[0076] Also, the functions of the information processing device 100 may be realized by a plurality of devices, or some functions may be realized using computing resources such as the cloud.

[0077] <D. Classification Model and XAI Model> Next, the learning and generation of the classification model 2 and the XAI model 4 will be described.

[0078] In the present embodiment, the XAI model 4 has the same structure as the classification model 2. However, the learning states of the classification model 2 and the XAI model 4 are different.

[0079] FIG. 8 is a diagram showing an example of a learning curve of a model used in the classification model 2 and the XAI model 4 according to the present embodiment. FIG. 8 shows a change in model error with respect to the number of samples (per epoch). FIG. 8 shows an error for the learning data used to learn the model and an error for validation data different from the learning data. Note that the learning data and validation data can be prepared by dividing a set of acquired image data 20 and sensor data 22 by a cross-validation method (e.g., K-cross-validation, etc.).

[0080] As shown in Figure 8, we can see that the error of the model for the training data decreases as the number of training samples increases. On the other hand, we can see that the error of the model for the validation data increases halfway through as the number of training samples increases. In other words, this shows that an excessive increase in the number of training samples can cause the model to become overfitted.

[0081] Therefore, a model in an appropriate learning state, which is neither underlearned nor overlearned, is used as classification model 2. By using a model in an appropriate learning state, high versatility and high accuracy can be expected.

[0082] In contrast, an under-learned model is used in the XAI model 4. As described above, by using a model in an under-learned state, the interpretability of the classification model can be improved.

[0083] The information processing device 100 according to the present embodiment provides a user interface screen, as described below, in the model learning process so that an appropriate learning state of the XAI model 4 can be grasped. Furthermore, the information processing device 100 sequentially stores the model (model parameters 165) in the database 150 in the learning process.

[0084] It should be noted that the vertical axis of the learning curve shown in Fig. 8 may use precision instead of or in addition to the error. The lower the error, the better the model, and the higher the precision, the better the model.

[0085] <E.XAI method> Next, an XAI method for generating the image XAI40 and the sensor data XAI42 will be described. For example, as an XAI method for visualization using a saliency map, any algorithm such as Grad-CAM, XGrad-CAM, ScoreCAM, or Eigen-CAM can be used.

[0086] FIG. 9 is a diagram for explaining an example of a process of generating the image XAI40 by the XAI method according to the present embodiment. FIG. 10 is a diagram for explaining an example of a process of generating the sensor data XAI42 by the XAI method according to the present embodiment. FIG. 11 is a diagram for explaining an example of a process of generating the low-order feature amount 180 by the XAI method according to the present embodiment.

[0087] In FIGS. 9 to 11, an example of using the Grad-CAM algorithm as the XAI method is shown.

[0088] Referring to FIG. 9, the image XAI40 is generated from the feature map 50 output from the neural network 10. More specifically, the information processing apparatus 100 inputs one or more pieces of image data 20 to the neural network 10 to calculate the feature map 50, and inputs the feature map 50 to the fully connected layer 14 to output the inference result 30 (step S1). Subsequently, the information processing apparatus 100 calculates the gradient 52 from the inference result 30 to the feature map 50 output by the final layer of the neural network 10 (step S2).

[0089] The information processing apparatus 100 executes a GAP (Global Average Pooling) process on the gradient 52 up to the feature map 50 (step S3). By the GAP process, a pooling result 54 with the dimensionality of the gradient 52 up to the feature map 50 reduced is generated.

[0090] Next, the information processing device 100 calculates a weighted sum of the feature amount map 50 and the pooling result 54, and inputs the weighted sum to an activation function 172 (for example, ReLU (Rectified Linear Unit) or the like) to generate an image XAI40 (step S4).

[0091] 10, the sensor data XAI42 is generated from a feature amount map 60 output from the neural network 12. More specifically, the information processing device 100 inputs one or more sensor data 22 to the neural network 12 to calculate the feature amount map 60, and inputs the feature amount map 60 to the activation function fully connected layer 14 to output the inference result 30 (step S11).

[0092] Next, the information processing device 100 calculates a gradient 62 from the inference result 30 to the feature amount map 60 output by the final layer of the neural network 12 (step S12).

[0093] The information processing device 100 executes a GAP (Global Average Pooling) process on the gradient 62 up to the feature map 60 (step S13). By the GAP process, a pooling result 64 in which the number of dimensions of the gradient 62 up to the feature map 60 is reduced is generated.

[0094] Next, the information processing device 100 calculates a weighted sum of the feature amount map 60 and the pooling result 64, and inputs the weighted sum to the activation function 174 to generate the sensor data XAI42 (step S14).

[0095] In addition to generating the image XAI40 and the sensor data XAI42, or instead of generating the image XAI40 and the sensor data XAI42, the information processing device 100 may calculate features by dimensionally compressing the feature amount map 50 and the feature amount map 60.

[0096] Referring to FIG. 11, the information processing apparatus 100 executes GAP processing on the feature maps 50 and 60 that are sequentially output in conjunction with the training of the classification model 2 (step S21). Through the GAP processing, a pooling result 70 with reduced dimensions of the feature maps 50 and 60 is generated.

[0097] Subsequently, the information processing apparatus 100 further compresses the dimension of the pooling result 70 to calculate a two-dimensional low-order feature amount 180 (step S22). As the dimension compression method, an algorithm such as PCA (Principal Component Analysis) or UMAP (Uniform Manifold Approximation and Projection) can be used.

[0098] <Generation of XAI model 4> Next, the process of generating the XAI model 4 will be described.

[0099] As described above, a model in an underfitting state is used for the XAI model 4. The user may confirm that the model is in an underfitting state, and the information processing apparatus 100 may determine it as the XAI model 4 according to the user operation. Alternatively, the information processing apparatus 100 may present a model in an underfitting state as a candidate for the XAI model 4.

[0100] To determine that the model is in an underfitting state, the accuracy or image feature amount of the model may be used.

[0101] For example, the information processing apparatus 100 may receive a specification of the required accuracy of the classification model 2, and present, as candidates for the XAI model 4, those with as few epochs (number of samples) as possible for the specified required accuracy.

[0102] FIG. 12 is a diagram showing an example of the accuracy calculated during the model training according to the present embodiment.

[0103] For example, if the required accuracy is specified as a macro average (F1-Score) of 0.95 or higher, the learning state with the smallest number of epochs (number of samples) that meets the specified required accuracy is presented as a candidate for XAI model 4.

[0104] Fig. 12(A) shows an example of the accuracy of classification model 2 when the number of epochs is 10, and Fig. 12(B) shows an example of the accuracy of classification model 2 when the number of epochs is 40. For both accuracies, the macroavg is equal to or greater than "0.95," and classification model 2 in the state shown in Fig. 12(A) with a small number of epochs is presented as a candidate for XAI model 4.

[0105] Furthermore, the information processing device 100 may visualize a state during model learning. The state during model learning may be, for example, the image XAI40 itself, or a distribution 182 of low-level features 180 calculated from the feature map 50 and the feature map 60.

[0106] FIG. 13 is a diagram showing an example of image XAI40 and sensor data XAI42, and distribution 182 of low-level feature amount 180 calculated during model learning in accordance with the present embodiment.

[0107] Figure 13(A) shows an example of image XAI40 and sensor data XAI42 output from classification model 2 and distribution 182 of low-level features 180 when the number of epochs is 10, and Figure 12(B) shows an example of image XAI40 and sensor data XAI42 output from classification model 2 and distribution 182 of low-level features 180 when the number of epochs is 40.

[0108] The user can also check the image XAI40, the sensor data XAI42, or the distribution 182 of the low-level features 180 to determine an appropriate learning state for the XAI model 4. The information processing device 100 may determine the model in the selected learning state as the XAI model 4 in accordance with a user operation.

[0109] In this manner, the user may qualitatively determine the XAI model 4 by checking the image XAI40, the sensor data XAI42, or the distribution 182 of the low-level features 180.

[0110] Fig. 14 is a diagram showing an example of a user interface screen 200 provided by information processing device 100 according to the present embodiment. Referring to Fig. 14, user interface screen 200 includes a learning curve 210, an accuracy evaluation result 220, and a distribution 230 of image features.

[0111] The learning curve 210 indicates a change in the error or accuracy of the model generated during the learning process. The information processing device 100 generates a user interface screen 200 including a learning curve 210 indicating a change in at least one of the error and accuracy of the model with respect to the number of learning data used in learning.

[0112] The information processing device 100 displays a classification model position 214 at the position of the learning state determined as the classification model 2 in association with the learning curve 210, and displays a recommended position 216 at the position of the learning state calculated to be suitable for the XAI model 4.

[0113] The information processing device 100 changes the position display 213 in response to a user's operation of the slider 212. In response to a user's selection of the selection button 218, the information processing device 100 determines the model corresponding to the learning state in which the position display 213 is displayed as the XAI model 4. In this way, the information processing device 100 determines the model in the selected state as the XAI model 4 in response to a user operation on the user interface screen 200.

[0114] The information processing device 100 updates the display contents of the accuracy evaluation result 220 in response to a user's operation of the slider 212. A required accuracy 222 designated in advance may be displayed together with the accuracy evaluation result 220. In this manner, the user interface screen 200 of the information processing device 100 may include the evaluation result of the accuracy of the model (accuracy evaluation result 220) in the learning state designated by the user operation.

[0115] Information processing device 100 updates distribution 230 of low-level features 180 in response to a user's operation of slider 212. In this manner, user interface screen 200 may include distribution 230 of low-level features 180 (distribution of features) output by the model in a learning state specified by a user operation.

[0116] When any of the samples (image features) of the distribution 230 of the low-level features 180 is selected by the pointer 234, the information processing device 100 may display the image data 20, the image XAI40, and the sensor data XAI42 corresponding to the selected sample. By displaying the image data 20, the image XAI40, and the sensor data XAI42, the user can visually confirm the state of learning. In this manner, the user interface screen 200 may include a saliency map (the image XAI40 and the sensor data XAI42) generated based on the output of the model.

[0117] The information processing device 100 may appropriately change the calculation algorithm of the image feature amount used for the distribution 230 of the low-level feature amount 180 in response to a selection made by the user on the pull-down menu 232.

[0118] In this way, the information processing device 100 provides the user interface screen 200 so that the user can determine the XAI model 4. Note that some of the information displayed on the user interface screen 200 may be omitted.

[0119] FIG. 15 is a schematic diagram showing an example of data sequentially stored in the database 150 by the information processing apparatus 100 according to the present embodiment in the learning process. Referring to FIG. 15, the information processing apparatus 100 sequentially stores, in the database 150, the model parameter 165, the image XAI40, the sensor data XAI42, and the low-order feature amount 180 in association with the number of epochs.

[0120] When any number of epochs is specified, the information processing apparatus 100 generates the classification model 2 and the XAI model 4 by reflecting the model parameter 165 corresponding to the specified number of epochs in the model.

[0121] FIG. 16 is a diagram showing a configuration example of a model generated by the information processing apparatus 100 according to the present embodiment in the learning process.

[0122] Referring to FIG. 16, the information processing apparatus 100 generates the classification model 2, which is a properly learned model, and the XAI model 4, which is an under-learned model. The XAI model 4 is associated with the XAI visualization unit 170 for generating the image XAI40 and the sensor data XAI42 by the XAI method.

[0123] <G. Example of processing procedure> Next, an example of a processing procedure executed by the information processing apparatus 100 according to the present embodiment will be described.

[0124] (g1: Model learning) In the learning of the models (the classification model 2 and the XAI model 4), the information processing apparatus 100 inputs learning data (one or more image data 20 and one or more sensor data 22 to which correct labels are assigned) to the classification model 2 as shown in FIG. 1 and outputs an inference result 30. When performing the three-class classification as described above, the number of output classes is "3". Subsequently, the information processing apparatus 100 updates the model parameter 165 of the neural network included in the classification model 2 based on the error between the inference result 30 and the correct label of the input learning data by the error backpropagation method.

[0125] The model parameters 165 of the neural network to which the image data 20 is input and the neural network to which the sensor data 22 is input may be updated together, or each of the model parameters 165 of the neural networks may be updated individually.

[0126] For training the classification model 2, any learning algorithm may be used. (g2: learning process) 17 is a flowchart showing a processing procedure of a learning process of the information processing device 100 according to the present embodiment. Each step shown in FIG. 17 may be realized by one or more processors 102 of the information processing device 100 executing the model generation program 110.

[0127] 17, the information processing device 100 selects one epoch from among the learning data (the image data 20 and the sensor data 22 to which the correct answer label is assigned) divided into a plurality of epochs (step S100). Then, the information processing device 100 selects one piece of learning data included in the selected epoch (step S102).

[0128] The information processing device 100 inputs the selected learning data (image data 20 and sensor data 22) to a model for generating a classification model 2 and an XAI model 4 (step S104). The information processing device 100 updates the model parameters 165 based on the error between the inference result of the model and the correct label assigned to the input learning data (step S106).

[0129] Furthermore, the information processing device 100 acquires a feature amount map 50 calculated by inputting the selected learning data (image data 20 and sensor data 22) into the model, and calculates a gradient 52 from the inference result 30 to the feature amount map 50 (step S108). Then, the information processing device 100 generates an image XAI40 and sensor data XAI42 based on the feature amount map 50 and the gradient 52 from the inference result 30 to the feature amount map 50 (step S110).

[0130] Furthermore, the information processing device 100 calculates the low-level feature amount 180 from the feature amount map 50 calculated by inputting the learning data into the model (step S112).

[0131] The order of execution of steps S104 and S106 and steps S108 to S112 does not matter. Moreover, the processing of steps S104 and S106 and the processing of steps S108 to S112 may be executed in parallel. Moreover, generation of image XAI40 and sensor data XAI42 (step S110) may be executed only for the final learning data of each epoch.

[0132] The information processing device 100 determines whether or not all of the learning data included in the selected epoch has been selected (step S114). If there is any learning data that has not been selected (NO in step S114), the processing from step S102 onwards is repeated.

[0133] If all of the learning data have been selected (YES in step S114), the information processing device 100 stores the model parameters 165, the image XAI40, the sensor data XAI42, and the low-level features 180 in the database 150 in association with the number of epochs (step S116).

[0134] The information processing device 100 determines whether or not all the prepared epochs have been selected (step S118). If an epoch remains that has not been selected (NO in step S118), the processes from step S100 onwards are repeated.

[0135] In this manner, the information processing device 100 sequentially learns a model using a plurality of epochs (learning data), and sequentially stores data indicating the state of the model during learning in the database 150 (steps S100 to S118).

[0136] If all of the prepared epochs have been selected (YES in step S118), the information processing device 100 generates information necessary for determining the XAI model 4 based on the stored model parameters 165, image XAI40, sensor data XAI42, and low-level features 180 (step S120), and displays and outputs a user interface screen including the generated information (step S122).

[0137] The information processing device 100 determines, in accordance with a user operation, a model in a predetermined learning state as the classification model 2, and determines a model in a specified learning state as the XAI model 4 (step S124). Then, the process ends.

[0138] In this way, the information processing device 100 determines a model in a state trained using a predetermined number of epochs among the multiple epochs (learning data) as the classification model 2. In addition, the information processing device 100 determines a model in a state trained using a number of epochs among the multiple epochs (learning data) that is less than the predetermined number as the XAI model 4.

[0139] In addition, in step S124, an XAI visualization unit 170 associated with the XAI model 4 may also be generated.

[0140] (g3: Operation process) 18 is a flowchart showing a processing procedure of the operation process of the information processing device 100 according to this embodiment. Each step shown in FIG. 18 may be realized by one or more processors 102 of the information processing device 100 executing the model operation program 112.

[0141] 18, when new image data 20 and sensor data 22 are input (YES in step S200), information processing device 100 inputs image data 20 and sensor data 22 to classification model 2 (step S202), and outputs inference result 30 (step S204).

[0142] That is, the information processing apparatus 100 inputs one or more pieces of image data 20 (first data) and one or more pieces of sensor data 22 (second data) whose data format is different from that of the one or more pieces of image data into the classification model 2 (first learned model) to calculate an inference result 30.

[0143] Further, the information processing apparatus 100 inputs the image data 20 and the sensor data 22 into the XAI model 4 (step S206), and calculates a feature map 50 and a gradient 52 from the inference result 30 to the feature map 50 (step S208). Then, the information processing apparatus 100 generates an image XAI 40 and sensor data XAI 42 based on the feature map 50 and the gradient 52 from the inference result 30 to the feature map 50 (step S210).

[0144] That is, the information processing apparatus 100 generates a saliency map (image XAI 40 and sensor data XAI 42) showing the part that the classification model 2 focuses on to calculate the inference result 30 for at least one of the one or more pieces of image data 20 (first data) and the one or more pieces of sensor data 22 (second data).

[0145] Note that the execution order of the processes in steps S202 and S204 and the processes in steps S206 to S210 is not limited. Also, the processes in steps S202 and S204 and the processes in steps S206 to S210 may be executed in parallel.

[0146] The processes in steps S200 to S210 are repeated every time the image data 20 and the sensor data 22 are input.

[0147] In the operation process, in addition to the inference result 30 for the image data 20, the information processing apparatus 100 may display and output the image data 20, the image XAI 40, and the sensor data XAI 42 side by side.

[0148] <H. Usage Example of Inference Result 30> Next, an example of how the inference results output by the classification model 2 are used will be described.

[0149] 19 is a schematic diagram showing an example of an operation screen 250 of a production line 400 according to the present embodiment. The information processing device 100 or the control device 300 outputs and displays the operation screen 250 shown in FIG.

[0150] The operation screen 250 displays an object 260 indicating the target production line 400, as well as an object 262 indicating the inference result 30. The sensor data 22 input to the classification model 2 and the corresponding part of the production line 400 are associated in advance.

[0151] For example, if the inference result 30 indicates "abnormality," the image XAI40 or the sensor data XAI42-1, 42-2 may be displayed near the corresponding portion of the production line 400.

[0152] 19, an image XAI40 generated from image data 20 obtained by capturing an image of a workpiece is displayed near the exit side of the manufacturing line 400. The image data 20 itself is also displayed.

[0153] In addition, sensor data XAI42-1 generated from sensor data 22-1 indicating temperature is displayed near the temperature sensor of the top seal upper blade, and sensor data XAI42-2 generated from sensor data 22-2 indicating motor torque is displayed near the top seal shaft.

[0154] In this way, when the inference result 30 of the classification model 2 is a predetermined value (e.g., “abnormal”), the information processing device 100 (display output unit 114) or the control device 300 may display and output a saliency map (image XAI40 or sensor data XAI42) together with an image that visualizes at least a portion of one or more image data 20 and one or more sensor data 22.

[0155] By providing the operation screen 250 as shown in FIG. 19, when it is determined that some abnormality has occurred, the cause of the occurrence of the abnormality can be more easily interpreted.

[0156] <I. Modified Example> FIG. 1 illustrates a classification model in which output layers of a plurality of neural networks are coupled by a fully-connected layer (FC). However, any model structure can be adopted, not limited to such a model structure. For example, one or more pieces of image data 20 and one or more pieces of sensor data 22 may be input to individual neural networks, respectively, and the plurality of neural networks may be fused by ensemble learning.

[0157] <J. Supplementary Note> The present embodiment as described above includes the following technical ideas.

[0158] [Configuration 1] A calculation unit (160) that inputs one or more pieces of first data (20) and one or more pieces of second data (22) whose data format is different from that of the one or more pieces of first data into a first learned model (2) to calculate an inference result (30); An information processing apparatus comprising: a generation unit (170) that generates a saliency map (40, 42) indicating a portion on which the first learned model focused in order to calculate the inference result, for at least one piece of data among the one or more pieces of first data and the one or more pieces of second data.

[0159] [Configuration 2] Each of the one or more pieces of first data includes image data, The information processing apparatus according to Configuration 1, wherein each of the one or more pieces of second data includes time-series data of scalar values.

[0160] [Configuration 3] The information processing apparatus according to Configuration 1 or 2, wherein the generation unit generates the saliency map using a second learned model with insufficient learning as compared with the first learned model.

[0161] [Configuration 4] The information processing device according to any one of configurations 1 to 3, further comprising a display output unit (114) that displays and outputs the saliency map.

[0162] [Configuration 5] The information processing device of configuration 4, wherein the display output unit displays and outputs the saliency map together with the one or more first data and an image (20, 22) visualizing at least a portion of the one or more first data when the inference result is a predetermined value.

[0163] [Configuration 6] The information processing device according to any one of configurations 1 to 5, wherein the first trained model includes a plurality of neural networks (10, 12) corresponding to each of the one or more first data and the one or more second data.

[0164] [Configuration 7] An information processing program (110) comprising: A step (S200 to S204) of inputting one or more first data (20) and one or more second data (22) having a data format different from that of the one or more first data into a first trained model (2) to calculate an inference result (30); and generating (S206 to S210) a saliency map (40, 42) indicating a portion focused on by the first trained model to calculate the inference result for at least one of the one or more first data and the one or more second data.

[0165] [Configuration 8] a learning unit (166) that sequentially learns a model using a plurality of learning data (2) including one or more first data (20) and one or more second data (22) having a data format different from that of the one or more first data, and sequentially stores data indicating a state of the model during learning; a determination unit (168) that determines a model trained using a first number of pieces of training data among the plurality of pieces of training data as a first model (2), and determines a model trained using a second number of pieces of training data, the second number being smaller than the first number, among the plurality of pieces of training data, as a second model (4) in accordance with a user operation; The information processing apparatus, wherein the second model is associated with a generator (170) for generating a saliency map based on an output of the second model.

[0166] [Configuration 9] The determination unit is generating a user interface screen (200) including a learning curve (210) showing a change in at least one of an error and an accuracy of the model with respect to the number of training data used for training; 9. The information processing device according to configuration 8, wherein a model in a selected state is determined as the second model in response to a user operation on the user interface screen.

[0167] [Configuration 10] The user interface screen includes: An evaluation result (220) of the accuracy of the model in a learning state specified by a user operation; A distribution (230) of features output by the model in a learning state specified by a user operation; and a saliency map (40, 42) generated based on the output of the model in a learning state specified by a user operation.

[0168] [Configuration 11] An information processing program, comprising: Using a plurality of learning data (2) including one or more first data (20) and one or more second data (22) having a different data format from the one or more first data, sequentially learning a model, and sequentially storing data indicating a state during the learning of the model (Steps S100 to S118); Determining a model in a state learned using a first number of learning data among the plurality of learning data as a first model (2), and determining, according to a user operation, a model in a state learned using a second number of learning data less than the first number among the plurality of learning data as a second model (4) (Step S124); The information processing program, wherein the second model is associated with a generation unit (170) for generating a saliency map (40, 42) based on an output of the second model.

[0169] [Configuration 12] A non-transitory computer-readable medium (106) storing the information processing program according to Configuration 7 or 11.

[0170] <K. Advantages> According to the present embodiment, since a plurality of types of data (for example, image data and sensor data) are input to the same learned model to calculate an inference result, inference can be performed comprehensively. For example, by collecting one or more image data and one or more sensor data from the same manufacturing line and inputting all the collected data into a classification model, an abnormality that could not be detected by the image data alone or the sensor data alone can also be detected.

[0171] In addition, when visualizing a classification model that executes a classification task by an XAI method, there may be a problem that, regardless of the inference result, a reaction occurs at the same location in the visualized saliency map, resulting in low interpretability. In contrast, according to the present embodiment, by using a model in an appropriate learning state as a classification model and using a model in a state of insufficient learning as an XAI model, it is possible to visualize the portion that the classification model focuses on.

[0172] In this way, according to this embodiment, the interpretability of the trained model can be improved. The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]

[0173] 2 Classification model, 4 XAI model, 10, 12 Neural network, 14 Fully connected layer, 20 Image data, 22 Sensor data, 23 Frame, 30 Inference result, 40 Image XAI, 42 Sensor data XAI, 50, 60 Feature map, 52, 62 Gradient, 54, 64, 70 Pooling result, 100 Information processing device, 102 Processor, 104 Memory, 106 Storage, 108 OS, 110 Model generation program, 112 Model operation program, 114 Display output unit, 116 Input unit, 118 Communication circuit, 150, 320 Database, 160 Operation unit, 165 Model parameters, 166 Learning unit, 168 Model determination unit, 170 XAI visualization unit, 172, 174 Activation function, 180 Low-level features, 182, 230 Distribution, 200 User interface screen, 210 Learning curve, 212 slider, 213 position display, 214 classification model position, 216 recommended position, 218 selection button, 220 accuracy evaluation result, 222 required accuracy, 232 pull-down menu, 234 pointer, 250 operation screen, 260, 262 object, 300 control device, 310 control program, 322 data collection section, 350 control command, 400 production line, 410 camera, 420 sensor.

Claims

1. A calculation unit that inputs one or more first data and one or more second data having a data format different from that of the one or more first data into a first trained model to calculate an inference result; and a generation unit that generates a saliency map indicating a portion focused on by the first learned model to calculate the inference result for at least one of the one or more first data and the one or more second data.

2. each of the one or more first data includes image data; The information processing apparatus according to claim 1 , wherein each of the one or more second data includes time-series data of a scalar value.

3. The information processing device according to claim 1 , wherein the generation unit generates the saliency map by using a second trained model that is less well-trained than the first trained model.

4. The information processing device according to claim 1 , further comprising a display output unit that displays the saliency map.

5. The information processing device according to claim 4, wherein the display output unit, when the inference result is a predetermined value, displays and outputs the saliency map together with the one or more first data and an image visualizing at least a portion of the one or more first data.

6. The information processing device according to any one of claims 1 to 3, wherein the first learned model includes a plurality of neural networks corresponding to each of the one or more first data and the one or more second data.

7. An information processing program, comprising: A step of inputting one or more first data and one or more second data having a data format different from that of the one or more first data into a first trained model to calculate an inference result; and generating a saliency map indicating a portion focused on by the first trained model to calculate the inference result for at least one of the one or more first data and the one or more second data.

8. A learning unit that sequentially learns a model using a plurality of learning data including one or more first data and one or more second data having a data format different from that of the one or more first data, and sequentially stores data indicating a state of the model during learning; a determination unit that determines, as a first model, a model trained using a first number of pieces of training data among the plurality of pieces of training data, and determines, in accordance with a user operation, as a second model, a model trained using a second number of pieces of training data that is less than the first number among the plurality of pieces of training data; The second model is associated with a generator for generating a saliency map based on an output of the second model.

9. The determination unit is generating a user interface screen including a learning curve showing a change in at least one of an error and an accuracy of the model with respect to the number of training data used for training; The information processing apparatus according to claim 8 , wherein a model in a selected state is determined as the second model in response to a user operation on the user interface screen.

10. The user interface screen includes: An evaluation result of the accuracy of the model in a learning state specified by a user operation; and A distribution of features output by the model in a learning state designated by a user operation; and The information processing apparatus according to claim 9 , further comprising at least one of: a saliency map generated based on an output of the model in a learning state specified by a user operation.

Citation Information

Cited By

  • Detection system, detection device, and detection program

    JP7956575B1