Information processing system, information processing method, and program
The system efficiently executes processing on new learning models by allowing the processor to handle conversions, ensuring rapid and reliable processing even during the conversion period, transitioning to the programmable logic device when complete.
Patent Information
- Application Number
- JP2020135709
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-11
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-08-11
AI Technical Summary
Conventional methods for converting new learning models into logic data on programmable logic devices take a long time, often several hours to several days, leading to inefficiencies in executing processing based on these models.
An information processing system that includes a processor, a programmable logic device, a machine learning execution unit, and a conversion unit, allowing the processor to execute processing based on a new learning model during the conversion period, with the ability to switch to the programmable logic device once the conversion is complete.
Enables quick execution of processing based on new learning models, ensuring high reliability and efficiency by leveraging both processor and programmable logic device capabilities.
Smart Images

Figure 0007533003000007 
Figure 0007533003000002 
Figure 0007533003000015
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing system, an information processing method, and a program, and more particularly to a technique for executing a specific process based on a learning model. [Background technology]
[0002] Conventionally, OCR (Optical Character Recognition) is one of the technologies for recognizing characters contained in an input image. However, OCR has difficulty recognizing images such as logos. One method for recognizing logos is, for example, a template matching method. However, even with template matching methods, if the logo contained in the input image is tilted, the difference between the template and the image becomes large, making it impossible to accurately recognize the logo.
[0003] For this reason, in recent years, it has been proposed to use machine learning such as deep learning to infer logo images contained on receipts, etc. (For example, Patent Document 1). By using deep learning for logo determination, it is possible to determine the logo even if it is tilted, and therefore the recognition rate can be improved compared to template matching.
[0004] For example, in the field of image processing, algorithms that use convolutional neural networks (CNNs) are widely used in machine learning through deep learning. Convolutional neural networks require a huge amount of calculation for convolution operations, so there was previously concern that the calculation time would be long. However, in recent years, with the improvement in the performance of general-purpose processors and programmable logic devices such as FPGAs (Field Programmable Gate Arrays), the calculation time has been reduced, and the use of convolutional neural networks is becoming more widespread.
[0005] A programmable logic device can realize a logic circuit as a dedicated circuit corresponding to a convolutional neural network, and therefore can perform inference processing more efficiently than a general-purpose processor. In addition, a technology has been proposed in which the logic data is rewritten and the internal logic circuit is reconfigured by using a programmable logic device (for example, Patent Document 2). By applying this technology, for example, when a new learning model is generated by machine learning, it is possible to perform inference processing corresponding to the new learning model by rewriting the logic data of the programmable logic device. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2019-168856 A [Patent Document 2] JP 2018-132830 A Summary of the Invention [Problem to be solved by the invention]
[0007] However, the conventional technology of the above Patent Document 2 has a problem that in the period from when a new learning model is generated until rewriting of logic data of the programmable logic device is completed, inference processing according to the new learning model cannot be executed in the programmable logic device. In particular, the process of converting the new learning model into logic data operable in the programmable logic device may take a long time, such as several hours to several days, and inference processing based on the new learning model cannot be executed for a long period of time.
[0008] Therefore, the present invention has been made to solve the above problem, and aims to provide an information processing system, an information processing method, and a program that enable processing based on a new learning model to be executed early when a new learning model is generated. [Means for solving the problem]
[0009] In order to achieve the above-mentioned object, the invention of claim 1 is an information processing system that executes a specific process based on a learning model, comprising a processor, a programmable logic device capable of reconfiguring a circuit by rewriting logic data, a machine learning execution unit that generates a new learning model for the specific process by executing machine learning, a conversion unit that converts the new learning model into logic data that can operate on the programmable logic device, and a control unit that causes the processor to execute the specific process based on the new learning model during a period in which the new learning model is being converted into logic data by the conversion unit.
[0010] The invention of claim 2 is a configuration in which, in the information processing system of claim 1, the control unit reconfigures the circuit of the programmable logic device using the logic data generated by the conversion unit upon completion of the conversion in the conversion unit, and switches the execution entity of the specific processing based on the new learning model from the processor to the programmable logic device.
[0011] The invention according to claim 3 is the information processing system according to claim 2, characterized in that the programmable logic device is an FPGA.
[0012] The invention according to claim 4 is an information processing system according to any one of claims 1 to 3, characterized in that the machine learning execution unit executes machine learning using deep learning.
[0013] The invention according to claim 5 is an information processing system according to any one of claims 1 to 4, characterized in that the specific processing is image processing.
[0014] The invention of claim 6 is an information processing system according to any one of claims 1 to 5, characterized in that the specific processing is a processing of inferring, by a learning model, which of a plurality of predetermined pattern images an input image matches.
[0015] The invention according to claim 7 is the information processing system according to claim 6, characterized in that the pattern image is a logo image.
[0016] The invention of claim 8 is an information processing system of any of claims 1 to 7, characterized in that during a period in which the new learning model is converted into logic data by the conversion unit, the control unit causes the programmable logic device to execute the specific processing before causing the processor to execute the specific processing, and decides whether to cause the processor to execute the specific processing depending on the processing result by the programmable logic device.
[0017] The invention of claim 9 is characterized in that, in the information processing system of claim 8, the control unit causes the processor to execute the specific processing based on the new learning model when the reliability of the processing result of the programmable logic device is lower than a predetermined value.
[0018] The invention of claim 10 is an information processing system of any of claims 1 to 9, characterized in that the control unit is capable of communicating with an external information processing device via a network, and when the processor is caused to execute the specific processing based on the new learning model during the period when the new learning model is converted into logic data by the conversion unit, a portion of the specific processing based on the new learning model is distributed to the information processing device.
[0019] The invention of claim 11 is characterized in that, in an information processing system of any of claims 1 to 10, the processor, the programmable logic device, and the control unit are implemented in a terminal device, and the machine learning execution unit and the conversion unit are implemented in a server device capable of communicating with the terminal device.
[0020] The invention of claim 12 is characterized in that, in an information processing system of any of claims 1 to 10, the processor, the programmable logic device, the machine learning execution unit, the conversion unit, and the control unit are implemented in a terminal device.
[0021] The invention of claim 13 is an information processing method for executing a specific process based on a learning model in a terminal device including a processor and a programmable logic device capable of reconfiguring the circuit by rewriting logic data, characterized in that it has a first step of generating a new learning model for the specific process by performing machine learning, a second step of converting the new learning model into logic data that can operate on the programmable logic device, and a third step of causing the processor to execute the specific process based on the new learning model during the period when the new learning model is converted into logic data in the second step.
[0022] The invention of claim 14 is an information processing method of claim 13, further comprising a fourth step of reconfiguring the circuit of the programmable logic device using the logic data generated in the second step upon completion of the conversion in the second step, and a fifth step of switching the execution entity of the specific processing based on the new learning model from the processor to the programmable logic device.
[0023] The invention according to claim 15 is an information processing method according to claim 13 or 14, characterized in that the first step comprises executing machine learning by deep learning.
[0024] The invention according to claim 16 is an information processing method according to any one of claims 13 to 15, characterized in that the specific processing is image processing.
[0025] The invention of claim 17 is an information processing method according to any one of claims 13 to 16, characterized in that the specific processing is a processing of inferring, by a learning model, which of a plurality of predetermined pattern images an input image matches.
[0026] The invention according to claim 18 is the information processing method according to claim 17, characterized in that the pattern image is a logo image.
[0027] The invention of claim 19 is an information processing method of any of claims 13 to 18, characterized in that the third step, during a period in which the new learning model is converted into logic data in the second step, causes the programmable logic device to execute the specific processing before causing the processor to execute the specific processing, and determines whether or not to cause the processor to execute the specific processing depending on the processing result by the programmable logic device.
[0028] The invention of claim 20 is an information processing method of claim 19, characterized in that the third step causes the processor to execute the specific processing based on the new learning model when the reliability of the processing result of the programmable logic device is lower than a predetermined value.
[0029] The invention according to claim 21 is an information processing method according to any one of claims 13 to 20, wherein the terminal device is capable of communicating with an external information processing device via a network, and the third step is characterized in that, when the processor is caused to execute the specific processing based on the new learning model during a period in which the new learning model is converted into logic data in the second step, a part of the specific processing based on the new learning model is distributed to the information processing device.
[0030] The invention of claim 22 is a program that, when executed in a terminal device having a processor and a programmable logic device capable of reconfiguring a circuit by rewriting logic data, causes the terminal device to execute a specific process based on a learning model, characterized in that the programmable logic device is configured to execute a first step of generating a new learning model for the specific process by performing machine learning, a second step of converting the new learning model into logic data that can operate on the programmable logic device, and a third step of causing the processor to execute the specific process based on the new learning model during the period in which the new learning model is converted into logic data in the second step. Effect of the Invention
[0031] According to the present invention, when a new learning model is generated by machine learning, processing based on the new learning model can be executed promptly. [Brief description of the drawings]
[0032] [Figure 1] FIG. 1 illustrates an example of a basic configuration of an information processing system. [Diagram 2] FIG. 13 is a diagram showing classification candidates in which a plurality of pattern images are registered. [Diagram 3] FIG. 1 illustrates an example of an inference process performed by a programmable logic device. [Figure 4]3 is a diagram showing an example in which a new pattern image is additionally registered in the classification candidates shown in FIG. 2. FIG. [Diagram 5] 1A and 1B are diagrams illustrating an example in which the accuracy of an inference result by a programmable logic device decreases. [Figure 6] 1 is a diagram illustrating an example of the configuration of an information processing system according to a first embodiment. [Figure 7] FIG. 2 is a block diagram showing an example of the configuration of a server device. [Figure 8] FIG. 2 is a block diagram showing a configuration example of a terminal device. [Figure 9] FIG. 13 is a diagram showing an example of an inference result by a processor. [Figure 10] FIG. 13 is a diagram showing an example of an inference result by a programmable logic device. [Figure 11] FIG. 2 is a diagram showing an overall operation process in the information processing system of the first embodiment. [Figure 12] FIG. 2 is a diagram showing an overall operation process in the information processing system of the first embodiment. [Figure 13] 5 is a flowchart showing an example of a processing procedure of a control unit in the first embodiment. [Figure 14] FIG. 11 is a diagram illustrating an operation process of a terminal device in the second embodiment. [Figure 15] 10 is a flowchart showing an example of a processing procedure of a control unit in the second embodiment. [Figure 16] FIG. 13 is a block diagram showing an example of the configuration of a terminal device in a third embodiment. [Figure 17] FIG. 13 is a diagram showing an operation process of an information processing system in a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In the following embodiments, elements common to each other are designated by the same reference numerals, and redundant description thereof will be omitted.
[0034] (Basic configuration) 1 is a diagram showing an example of a basic configuration of an information processing system 1 according to the present invention. This information processing system 1 is a system that executes a specific process based on a learning model, and includes a machine learning execution unit 11, a conversion unit 12, a control unit 13, a processor 14, and a programmable logic device 15.
[0035] The processor 14 is configured by a general-purpose CPU (Central Processing Unit), and executes any software (program) for the processor to perform processing according to a procedure defined in the software.
[0036] The programmable logic device 15 is a device that can reconfigure a logic circuit by rewriting logic data. This programmable logic device 15 is, for example, configured with an FPGA (Field Programmable Gate Array). Since the circuit configuration of an FPGA can be changed any time and any number of times and the circuit scale is large, it is suitable as a dedicated device that executes specific processing based on a learning model.
[0037] The machine learning execution unit 11 generates a learning model for a specific process by executing machine learning by deep learning. The learning model is, for example, a model that defines a neural network such as a convolutional neural network. In the present invention, the specific process is an inference process based on the learning model, and the target and content of the inference are not particularly limited. For example, the machine learning execution unit 11 has a plurality of classification candidates in the output layer of the neural network, and generates a learning model for inferring the correlation between the input data and each classification candidate when input data is input.
[0038] The conversion unit 12 converts the learning model generated by the machine learning execution unit 11 into logic data that can be operated by a programmable logic device. The conversion process by the conversion unit 12 generally takes time, and it may take several hours to several days from inputting the learning model to be converted until the logic data is completed.
[0039] The control unit 13 controls the operations of the processor 14 and the programmable logic device 15. For example, the control unit 13 causes either the processor 14 or the programmable logic device 15 to execute a specific process based on a learning model generated by the machine learning execution unit 11.
[0040] Logic data based on the learning model generated by the machine learning execution unit 11 is written into the programmable logic device 15, and a logic circuit corresponding to the logic data is configured. In other words, a dedicated circuit for performing a specific process based on the learning model is configured in the programmable logic device 15, and the specific process can be efficiently performed.
[0041] On the other hand, since the processor 14 is a general-purpose CPU, it is possible to execute specific processing by executing software for the processor. When executing the software, the processor 14 incorporates the learning model generated by the machine learning execution unit 11 into the software in the same manner as a library, and executes the software, thereby becoming able to perform specific processing based on the learning model. However, since the internal circuit of the processor 14 has a circuit configuration for performing general-purpose arithmetic processing, the processing efficiency when executing specific processing is poorer than that of the programmable logic device 15, and the processing time required is about 4 to 5 times that of the programmable logic device 15.
[0042] Therefore, the control unit 13 usually causes the programmable logic device 15 to execute a specific process based on a learning model. That is, when the control unit 13 acquires input data D1 to be subjected to the specific process, the control unit 13 outputs the input data D1 to the programmable logic device 15 and causes the programmable logic device 15 to execute the specific process based on the learning model for the input data D1. This allows the control unit 13 to obtain an inference result more efficiently than by causing the processor 14 to perform the inference process.
[0043] Here, as an example of the specific processing, an inference processing is taken in which an input image is included in the input data D1, and the degree of matching between each of a plurality of pattern images set as classification candidates and the input image is inferred. For example, as shown in FIG. 2, it is assumed that a plurality of pattern images 91 to 95 are registered as classification candidates 90. The pattern image 91 is a logo image imitating a hand, the pattern image 92 is a logo image imitating glasses, the pattern image 93 is a logo image with a cross inside a circle, the pattern image 94 is a logo image imitating a chicken, and the pattern image 95 is a logo image imitating a key. In this case, the programmable logic device 15 is configured with a circuit for inferring the degree of matching between the input image included in the input data D1 and each of the pattern images 91 to 95. Therefore, when the input data D1 is input from the control unit 13, the programmable logic device 15 outputs, as an inference result, numerical data representing the degree of matching between the input image included in the input data D1 and each of the pattern images 91 to 95.
[0044] FIG. 3 is a diagram showing an example of inference processing by the programmable logic device 15. In FIG. 3, the input data D1 includes an image similar to the shape of glasses as the input image. In this case, when the input data D1 is input to the programmable logic device 15, the programmable logic device 15 performs inference processing using a logic circuit corresponding to a learning model, thereby obtaining an inference result as shown in FIG. 3. That is, the programmable logic device 15 infers that the degree of match between the input image and the pattern image 92 is 98%, and that the degrees of match between the input image and the other pattern images 91, 93, 94, and 95 are less than 1%. This inference result can be said to be objectively correct.
[0045] This type of inference processing can be used, for example, to determine the logo of an input image. By performing logo determination, it is possible to identify brands, stores, companies, etc., which can be applied to a variety of applications, such as customer purchase analysis, accounting processing such as invoices and receipts, and business card management.
[0046] However, the logo image of a store or company may suddenly change. In such a case, a pattern image corresponding to the new logo image is registered as a new classification candidate in the machine learning execution unit 11. FIG. 4 is a diagram showing an example in which a new pattern image 96 is additionally registered in the classification candidate 90 shown in FIG. 2. The new pattern image 96 is a logo image imitating a wristwatch. When the classification upper limit number of the neural network is exceeded by the additional registration of the new classification candidate in this way, it becomes necessary to change the configuration of the neural network in order to increase the classification upper limit number. Even if the classification upper limit number of the neural network is not exceeded, it may be necessary to change the configuration of the neural network in order to improve the accuracy of the inference process. Therefore, the machine learning execution unit 11 executes machine learning by deep learning to make the new pattern image 96 recognizable, and generates a new learning model different from the previous learning model. Then, the machine learning execution unit 11 outputs the new learning model to each of the conversion unit 12 and the control unit 13.
[0047] When a new learning model is generated by the machine learning execution unit 11, the conversion unit 12 performs a process of converting the new learning model into logic data that can run on a programmable logic device. However, as described above, the conversion process by the conversion unit 12 takes a long time, so it takes a certain period of time until the logic data is completed.
[0048] If the control unit 13 acquires input data D1 to be subjected to inference processing while the conversion unit 12 is performing the process of converting a new learning model into logic data, the accuracy of the inference result may decrease if a specific processing is performed by the programmable logic device 15.
[0049] FIG. 5 is a diagram showing an example in which the accuracy of the inference result by the programmable logic device 15 decreases. In FIG. 5, the input data D1 includes an image similar to the shape of a wristwatch as the input image. In this case, when the input data D1 is input to the programmable logic device 15, the programmable logic device 15 performs inference processing using a logic circuit corresponding to an old learning model before a new learning model is generated. Therefore, the programmable logic device 15 obtains an inference result as shown in FIG. 5. That is, the programmable logic device 15 infers the pattern image 93 as the logo image with the highest degree of match with the input image. However, the degree of match in this case is 50%, which is not very reliable and there is a possibility of erroneous determination.
[0050] Therefore, when the control unit 13 acquires input data D1 to be subjected to inference processing during the period in which the new learning model is converted into logic data by the conversion unit 12, the control unit 13 causes the processor 14 to execute a specific process based on the new learning model generated by the machine learning execution unit 11. In other words, during the period in which the programmable logic device 15 cannot execute the specific process based on the new learning model, the control unit 13 controls the processor 14 to execute the specific process based on the new learning model instead. This makes it possible to execute the specific process based on the new learning model early, and to obtain a highly reliable inference result based on the new learning model. In the following, a specific embodiment of the information processing system 1 having the above-mentioned basic configuration will be described.
[0051] (First embodiment) 6 is a diagram showing an example of the configuration of the information processing system 1 in the first embodiment. For example, the information processing system 1 in this embodiment is configured as a network system including a plurality of terminal devices 2 and 3, a network 4, and a server device 5.
[0052] The terminal devices 2 and 3 are information processing devices constituted by, for example, a personal computer (PC) or a tablet terminal. Each of the multiple terminal devices 2 and 3 is equipped with a control unit 13, a processor 14, and a programmable logic device 15 shown in FIG. 1. Therefore, when a user inputs input data D1, the terminal devices 2 and 3 can execute a specific process based on a learning model with the input data D1 as a processing target. These multiple terminal devices 2 and 3 are connected to a network 4 constituted by a LAN (Local Area Network) or the like. The network 4 may include a wide area network such as the Internet.
[0053] The server device 5 is connected to the network 4 and is capable of communicating with the terminal devices 2 and 3. The server device 5 is installed, for example, in a cloud on the Internet. The machine learning execution unit 11 and the conversion unit 12 shown in FIG. 1 are implemented in this server device 5. Therefore, the server device 5 can provide the terminal devices 2 and 3 with a learning model, processor software, and logic data.
[0054] 7 is a block diagram showing a configuration example of the server device 5. The server device 5 includes a processing unit 20, a storage unit 21, and an external communication unit 22. The processing unit 20 includes, for example, a CPU and a memory (not shown), and executes various processes. The storage unit 21 is a non-volatile storage device including, for example, a hard disk drive (HDD) or a solid state drive (SSD). The external communication unit 22 is an interface that enables the server device 5 to communicate with the terminal devices 2 and 3 via the network 4.
[0055] The processing unit 20 functions as a machine learning execution unit 11, a conversion unit 12, and a communication control unit 23 as a result of the CPU executing a predetermined program.
[0056] As described above, the machine learning execution unit 11 generates a learning model 24 for a specific process by executing machine learning through deep learning. The specific process in this embodiment is an example of image processing in which an input image matches one of a plurality of predetermined pattern images based on a learning model. When a pattern image corresponding to a new logo image is registered as a new classification candidate, the machine learning execution unit 11 executes machine learning to recognize the new pattern image and generates a new learning model 24 that is different from the previous learning model. The new learning model 24 generated by the machine learning execution unit 11 is stored in the storage unit 21.
[0057] The conversion unit 12 functions in association with the generation of the learning model 24 by the machine learning execution unit 11. The conversion unit 12 reads out the new learning model 24 from the storage unit 21, and converts the learning model 24 into logic data 25 that can operate on the programmable logic device 15. The logic data 25 generated by the conversion unit 12 is stored in the storage unit 21. However, it takes a certain period of time from when the conversion process by the conversion unit 12 starts until the logic data 25 is stored in the storage unit 21.
[0058] The communication control unit 23 functions when a new learning model 24 is generated by the machine learning execution unit 11, and also functions when the conversion process by the conversion unit 12 is completed and logic data 25 is stored in the storage unit 21. The communication control unit 23 communicates with the terminal devices 2 and 3 via the external communication unit 22.
[0059] When a new learning model 24 is generated by the machine learning execution unit 11, the communication control unit 23 notifies the terminal devices 2 and 3 that the new learning model 24 has been generated. When a request for the new learning model 24 is received from the terminal devices 2 and 3 in response to this notification, the communication control unit 23 reads the new learning model 24 from the storage unit 21 and transmits the learning model 24 to the terminal devices 2 and 3. At this time, the communication control unit 23 reads the processor software 26 stored in the storage unit 21 and transmits it to the terminal devices 2 and 3 together with the new learning model 24. The processor software 26 is software for causing the processor 14 of the terminal devices 2 and 3 to execute a specific process based on the new learning model 24.
[0060] Furthermore, when the conversion process by the conversion unit 12 is completed and logic data 25 corresponding to the new learning model 24 is stored in the storage unit 21, the communication control unit 23 notifies the terminal devices 2 and 3 that the logic data 25 has been generated. When a request for the logic data 25 is received from the terminal devices 2 and 3 in response to this notification, the communication control unit 23 reads out the logic data 25 from the storage unit 21 and transmits the logic data 25 to the terminal devices 2 and 3.
[0061] FIG. 8 is a block diagram showing an example of the configuration of the terminal device 2. The configuration of the terminal device 3 is similar to that of the terminal device 2. The terminal device 2 includes a control unit 13, a processor 14, a programmable logic device 15, an external communication unit 28, and a storage unit 29. The external communication unit 28 is an interface for the terminal device 2 to communicate with the server device 5 and other terminal devices 3 via the network 4. The storage unit 29 is a non-volatile storage device configured, for example, by a hard disk drive (HDD) or a solid state drive (SSD). The storage unit 29 stores a new learning model 24, processor software 26, and logic data 25 acquired from the server device 5. The storage unit 29 also stores a program executed by the CPU of the control unit 13, which will be described later.
[0062] As described above, the control unit 13 controls the processor 14 or the programmable logic device 15 to execute a specific process based on the learning model 24. The control unit 13 includes a CPU and a memory (not shown), and functions as an inference process control unit 30, a learning model acquisition unit 31, a software acquisition unit 32, a logic data acquisition unit 33, and a logic reconstruction instruction unit 34 by the CPU reading and executing a predetermined program from the storage unit 29.
[0063] The control unit 13 is connected to the programmable logic device 15 via two connection parts, a first connection part 35 and a second connection part 36. Of these two connection parts, the first connection part 35 is a connection part for rewriting logic data in the programmable logic device 15 to reconfigure the circuit, and is configured, for example, by a USB connection interface. The second connection part 36 is a connection part for causing the programmable logic device 15 to perform inference processing, which is a specific process, and is a connection interface capable of faster and larger capacity communication than the first connection part 35, and is configured, for example, by a PCIe connection interface.
[0064] The inference process control unit 30 receives input of the input data D1, and controls either the programmable logic device 15 or the processor 14 to execute an inference process for inferring the degree of match between each of a plurality of preregistered pattern images and an input image included in the input data D1. The input data D1 may be input from an external connection terminal such as a USB connection terminal (not shown), or may be input via the external communication unit 28.
[0065] When the inference process control unit 30 has not received a notification from the server device 5 that a new learning model 24 has been generated, the inference process control unit 30 causes the programmable logic device 15 to execute the inference process. That is, the inference process control unit 30 outputs the input image included in the input data D1 to the programmable logic device 15 via the second connection unit 36, and causes the programmable logic device 15 to execute the inference process. Then, the inference process control unit 30 acquires the inference result by the programmable logic device 15, and outputs the inference result to a predetermined output destination. In this case, the output destination is, for example, the source of the input data D1. However, the output destination is not limited to this, and the inference process control unit 30 may output the inference result to an application designated in advance by the user.
[0066] The learning model acquisition unit 31 functions when a notification that a new learning model 24 has been generated is received from the server device 5. Then, the learning model acquisition unit 31 requests the new learning model 24 from the server device 5, and acquires the new learning model 24 from the server device 5. Upon acquiring the new learning model 24, the learning model acquisition unit 31 stores the new learning model 24 in the memory unit 29.
[0067] The software acquisition unit 32 functions together with the learning model acquisition unit 31. The software acquisition unit 32 acquires the processor software 26 transmitted by the server device 5 together with the new learning model 24. The software acquisition unit 32 then stores the processor software 26 in the memory unit 29.
[0068] The inference process control unit 30 includes a switching unit 30a. This switching unit 30a functions when a new learning model 24 is acquired by the learning model acquisition unit 31, and switches the execution subject of the inference process, which is a specific process, from the programmable logic device 15 to the processor 14. When the switching is performed by the switching unit 30a, the inference process control unit 30 causes the processor 14 to execute the inference process when it receives input data D1. In other words, during the period when the new learning model 24 is being converted into logic data 25 in the server device 5, the inference process control unit 30 switches the execution of the inference process to the processor 14, thereby causing the processor 14 to execute the inference process based on the new learning model 24.
[0069] When the processor 14 is instructed to execute an inference process by the inference process control unit 30, it reads out and executes the new learning model 24 and the processor software 26 stored in the memory unit 29. Then, the processor 14 executes an inference process to infer the degree of match between the input image included in the input data D1 output from the inference process control unit 30 and each of the multiple pattern images 91-96 (see FIG. 4) in the new learning model 24, and outputs an inference result indicating the degree of match with each of the pattern images 91-96.
[0070] FIG. 9 is a diagram showing an example of an inference result by the processor 14. In FIG. 9, the input data D1 includes an image similar to the shape of a wristwatch as an input image. In this case, when the input data D1 is input to the processor 14, the processor 14 executes an inference process based on the new learning model 24. As a result, the processor 14 obtains an inference result as shown in FIG. 9. That is, the processor 14 infers that the newly registered pattern image 96 is the logo image that has the highest degree of match with the input image. At this time, the degree of match between the input image and the pattern image 96 is 95%, and a highly reliable result can be obtained.
[0071] Therefore, the information processing system 1 of this embodiment is capable of obtaining inference results applying the new learning model 24 by performing inference processing using a general-purpose processor 14 during a period when inference processing based on the new learning model 24 cannot be performed in the programmable logic device 15 capable of efficiently performing inference processing, thereby suppressing a decrease in the reliability of the inference results.
[0072] The logic data acquisition unit 33 functions when a notification is received from the server device 5 that logic data 25 corresponding to the new learning model 24 has been generated. In this case, the logic data acquisition unit 33 requests the logic data 25 corresponding to the new learning model 24 from the server device 5, and acquires the logic data 25 from the server device 5. Upon acquiring the logic data 25 from the server device 5, the logic data acquisition unit 33 stores the logic data 25 in the storage unit 29.
[0073] The logic reconfiguration instruction unit 34 functions when the logic data 25 is acquired by the logic data acquisition unit 33. Then, the logic reconfiguration instruction unit 34 reads the logic data 25 from the storage unit 29, and rewrites the logic data in the programmable logic device 15 to the logic data 25 corresponding to the new learning model 24 via the first connection unit 35, thereby reconfiguring the circuit.
[0074] The programmable logic device 15 includes an inference execution unit 40, a logic reconfiguration execution unit 41, a first connection unit 45, and a second connection unit 46. The first connection unit 45 is mutually connected to the first connection unit 35 of the control unit 13. For example, the first connection unit 45 is configured by a USB connection interface or the like. The second connection unit 46 is mutually connected to the second connection unit 36 of the control unit 13. For example, the second connection unit 36 is configured by a PCIe connection interface or the like.
[0075] The inference execution unit 40 is configured with a logic circuit corresponding to logic data, and executes an inference process based on input data D1 supplied from the control unit 13. The logic circuit in the inference execution unit 40 has a circuit configuration corresponding to the learning model. However, the logic circuit can be reconfigured by changing the circuit configuration.
[0076] For example, when input data D1 is provided from the control unit 13 via the second connection unit 46, the inference execution unit 40 executes an inference process for an input image included in the input data D1. That is, the inference execution unit 40 infers the degree of match between the input image and a plurality of pattern images. The inference execution unit 40 then outputs the inference result from the inference process to the control unit 13 via the second connection unit 46.
[0077] When the logic reconfiguration execution unit 41 acquires logic data 25 corresponding to the new learning model 24 from the control unit 13 via the first connection unit 45, the logic reconfiguration execution unit 41 executes a process of reconfiguring the logic circuit of the inference execution unit 40 based on the logic data 25. As a result, the logic circuit in the inference execution unit 40 is reconfigured to a logic circuit corresponding to the new learning model 24. The time required for this reconfiguration is shorter than the time required for the conversion unit 12 to convert the learning model 24 to the logic data 25. However, since the reconfiguration of the logic circuit in the inference execution unit 40 is a static reconfiguration, the inference execution unit 40 cannot execute an inference process during the period in which the reconfiguration is being performed. Therefore, even if the inference process control unit 30 acquires input data D1 during the period in which the circuit is being reconfigured in the programmable logic device 15, the inference process control unit 30 causes the processor 14 to execute an inference process targeting the input data D1.
[0078] When the reconfiguration of the circuit in the inference execution unit 40 is completed, the logic reconfiguration execution unit 41 outputs a notification of completion of the reconfiguration to the logic reconfiguration instruction unit 34 via the first connection unit 45. Accordingly, the programmable logic device 15 becomes capable of performing inference processing with the reconfigured circuit.
[0079] When the logic reconfiguration instruction unit 34 receives a notification of completion of the reconfiguration from the programmable logic device 15, it notifies the inference processing control unit 30 that the reconfiguration of the circuit in the programmable logic device 15 has been completed.
[0080] When the inference processing control unit 30 receives a notification indicating that the reconfiguration of the circuit has been completed, it activates the switching unit 30a. When the switching unit 30a receives input data D1 thereafter, it switches the execution subject of the inference processing from the processor 14 to the programmable logic device 15. In other words, when the inference processing control unit 30 reaches a state in which the programmable logic device 15 is capable of performing inference processing based on the new learning model 24, it switches the execution subject of the inference processing back to the programmable logic device 15, thereby returning the inference processing to a state in which it can be performed efficiently.
[0081] Thereafter, when the inference processing control unit 30 receives the input data D1, it causes the programmable logic device 15 to execute the inference processing. That is, the inference processing control unit 30 outputs the input data D1 to the programmable logic device 15 via the second connection unit 46, thereby causing the programmable logic device 15 to execute the inference processing targeting the input image included in the input data D1. When the inference processing control unit 30 instructs the programmable logic device 15 to execute the inference processing, the programmable logic device 15 executes the inference processing based on the new learning model 24 in the reconfigured logic circuit, and outputs the inference result to the control unit 13.
[0082] FIG. 10 is a diagram showing an example of an inference result by the programmable logic device 15. In FIG. 10, the input data D1 includes an image similar to the shape of a wristwatch as the input image. In this case, when the input data D1 is input to the programmable logic device 15, the programmable logic device 15 executes an inference process based on a new learning model 24. As a result, the programmable logic device 15 obtains an inference result as shown in FIG. 10. That is, the programmable logic device 15 infers a newly registered pattern image 96 as the logo image that has the highest degree of match with the input image. At this time, the degree of match between the input image and the pattern image 96 is 95%, and a highly reliable result can be obtained.
[0083] 11 and 12 are diagrams showing an overall operation process in the information processing system 1 of this embodiment. First, as shown in Fig. 11, when a new classification candidate is registered in the server device 5 (process P1), the server device 5 executes machine learning (process P2) and generates a new learning model 24 (process P3).
[0084] When the new learning model 24 is generated, the server device 5 starts a process of converting the learning model 24 into logic data 25 (process P4). Accordingly, the server device 5 notifies the terminal device 2 that the new learning model 24 has been generated (process P5).
[0085] Upon receiving the notification, the control unit 13 of the terminal device 2 transmits a request for a new learning model 24 to the server device 5 (process P6). In response, the server device 5 transmits the new learning model 24 and the processor software 26 to the terminal device 2 (process P7). As a result, the control unit 13 of the terminal device 2 acquires the new learning model 24 (process P8) and also acquires the processor software 26 (process P9). Upon acquiring the new learning model 24, the control unit 13 of the terminal device 2 switches the execution entity of the inference process from the programmable logic device 15 to the processor 14 (process P10).
[0086] Then, before logic data 25 corresponding to the new learning model 24 is generated, when the control unit 13 of the terminal device 2 detects input data D1 to be the subject of inference processing (process P11), the control unit 13 instructs the processor 14 to execute the inference processing (process P12). At this time, the control unit 13 also provides the input data D1 to the processor 14.
[0087] When the processor 14 is instructed to execute the inference process, the processor software 26 is executed based on the new learning model 24 to start the inference process for the input data D1 (process P13). The inference process by the processor 14 ends after a predetermined time T1 has elapsed (process P14). This predetermined time T1 is a relatively long time. Then, the processor 14 outputs the inference result to the control unit 13 (process P15).
[0088] When the control unit 13 of the terminal device 2 acquires the inference result from the processor 14, the control unit 13 outputs the inference result to a predetermined output destination (process P16). Therefore, even if the logic data 25 based on the new learning model 24 has not yet been generated and the inference process based on the new learning model 24 cannot be executed in the programmable logic device 15, the terminal device 2 can output the inference result to which the new learning model 24 is applied by executing the inference process in the processor 14.
[0089] Next, moving on to Figure 12, when the process of converting the learning model 24 into logic data 25 is completed in the server device 5 (process P17), the server device 5 notifies the terminal device 2 that the generation of logic data 25 corresponding to the new learning model 24 has been completed (process P18).
[0090] Upon receiving the notification, the control unit 13 of the terminal device 2 transmits a request for the logic data 25 to the server device 5 (process P19). In response, the server device 5 transmits the logic data 25 corresponding to the new learning model 24 to the terminal device 2 (process P20).
[0091] When the control unit 13 of the terminal device 2 acquires the logic data 25 corresponding to the new learning model 24, it rewrites the logic data in the programmable logic device 15 to the logic data 25 corresponding to the new learning model 24, and instructs the programmable logic device 15 to reconfigure the logic circuit (process P21). This starts the reconfiguration of the logic circuit in the programmable logic device 15 (process P22). When the reconfiguration of the logic circuit is completed (process P23), the programmable logic device 15 notifies the control unit 13 that the reconfiguration of the circuit is completed (process P24).
[0092] Upon receiving the completion notification, the control unit 13 switches the execution subject of the inference process to the programmable logic device 15 (process P25). After that, when the control unit 13 detects input data D1 to be the target of the inference process (process P26), it instructs the programmable logic device 15 to execute the inference process (process P27). At this time, the input data D1 is output from the control unit 13 to the programmable logic device 15.
[0093] When the programmable logic device 15 is instructed to execute the inference process, it starts the inference process based on the new learning model 24 (process P28). The inference process by the programmable logic device 15 ends after a predetermined time T2 has elapsed (process P29). This predetermined time T2 is shorter than the time T1 required for the processor 14 to execute the inference process. Therefore, the programmable logic device 15 can obtain the inference result in a shorter time than the processor 14. Then, the programmable logic device 15 outputs the inference result to the control unit 13 (process P30).
[0094] When the control unit 13 acquires the inference result from the programmable logic device 15, the control unit 13 outputs the inference result to a predetermined output destination (process P31). Therefore, when the programmable logic device 15 becomes capable of executing the inference process based on the new learning model 24, the terminal device 2 can promptly output the inference result to which the new learning model 24 is applied by restarting the inference process by the programmable logic device 15.
[0095] Next, a processing procedure performed by the control unit 13 of the terminal device 2 will be described. Fig. 13 is a flowchart showing an example of the processing procedure by the control unit 13. For example, this processing is performed by the CPU of the control unit 13 executing a predetermined program. Also, this processing is executed by the control unit 13 when the power supply to the terminal device 2 is turned on.
[0096] When starting this process, the control unit 13 first initially sets the execution subject of the inference process to the programmable logic device 15 (step S1).
[0097] Next, the control unit 13 judges whether or not a notification indicating that a new learning model 24 has been generated has been received from the server device 5 (step S2). If a notification has been received (YES in step S2), the control unit 13 acquires the new learning model 24 from the server device 5 (step S3) and also acquires the processor software 26 (step S4). Then, the control unit 13 switches the execution subject of the inference process from the programmable logic device 15 to the processor 14 (step S5). On the other hand, if a notification indicating that a new learning model 24 has been generated has not been received from the server device 5 (NO in step S2), the control unit 13 skips the processing of steps S2 to S5.
[0098] Next, the control unit 13 judges whether or not the input data D1 to be the target of the inference process is detected (step S6). If the input data D1 is detected (YES in step S6), the control unit 13 checks the execution subject of the inference process (step S7) and judges whether or not the execution subject of the inference process is the processor 14 (step S8). As a result, if the execution subject of the inference process is the processor 14 (YES in step S8), the control unit 13 causes the processor 14 to execute the inference process for the input data D1 (step S9). At this time, the processor 14 executes the inference process based on the new learning model 24 and the processor software 26 acquired in steps S3 and S4, so that the inference process can be performed by reflecting the new learning model 24. On the other hand, if the execution subject of the inference process is the programmable logic device 15 (NO in step S8), the control unit 13 causes the programmable logic device 15 to execute the inference process for the input data D1 (step S10). On the other hand, if the input data D1 to be the subject of the inference process has not been detected (NO in step S6), the control unit 13 skips the processes in steps S7 to S10.
[0099] Next, the control unit 13 judges whether or not a notification indicating that logic data 25 corresponding to the new learning model 24 has been generated has been received from the server device 5 (step S11). If a notification has been received (YES in step S11), the control unit 13 acquires the logic data 25 corresponding to the new learning model 24 from the server device 5 (step S12). Then, the control unit 13 executes a process of reconfiguring the circuit of the programmable logic device 15 based on the logic data 25 acquired from the server device 5 (step S13). Then, when the reconfiguration of the circuit in the programmable logic device 15 is completed, the control unit 13 switches the execution subject of the inference process to the programmable logic device 15 (step S14). On the other hand, if a notification indicating that logic data 25 has been generated has not been received from the server device 5 (NO in step S11), the control unit 13 skips the processes of steps S12 to S14.
[0100] Next, the control unit 13 judges whether the power of the terminal device 2 has been turned off (step S15). If the power has not been turned off (NO in step S15), the control unit 13 repeats the processes from step S2 onwards. On the other hand, if the power has been turned off (YES in step S15), the process by the control unit 13 ends.
[0101] As a result of the above-mentioned processing being performed by the control unit 13, a new learning model 24 is generated in the server device 5, and when processing is being performed to convert the new learning model 24 into logic data 25, an inference processing based on the new learning model 24 can be executed by the processor 14 in the terminal device 2. In contrast, after logic data 25 corresponding to the new learning model 24 is generated and the circuit of the programmable logic device 15 is reconfigured based on the logic data 25, an inference processing based on the new learning model 24 can be efficiently executed by executing an inference processing by the programmable logic device 15 in the terminal device 2.
[0102] As described above, the information processing system 1 of this embodiment is configured to cause the processor 14 to execute a specific process based on the new learning model 24 during the period in which the conversion unit 12 converts the new learning model 24 into logic data 25. With this configuration, even during the period in which the programmable logic device 15 cannot execute the specific process based on the new learning model 24, the processor 14 can alternatively execute the specific process. Therefore, there is an advantage that the specific process based on the new learning model can be executed early even during the period in which the new learning model 24 is converted into logic data 25.
[0103] In the above, the processing in the terminal device 2 has been mainly described as an example, but the processing in the terminal device 3 is similar to that described above.
[0104] Second embodiment Next, a second embodiment of the present invention will be described. In the first embodiment, an example was described in which when the terminal device 2 acquires a new learning model 24 and processor software 26 from the server device 5, the execution subject of the inference process is immediately switched from the programmable logic device 15 to the processor 14. However, even if a new pattern image 96 is additionally registered as shown in FIG. 3 for a classification candidate 90 in which a plurality of pattern images 91 to 95 are registered in advance as shown in FIG. 2, the input image included in the input data D1 may be an image similar to any of the plurality of pattern images 91 to 95 registered in the previous classification candidate 90. In this case, even before the circuit of the programmable logic device 15 is reconfigured, it is possible to perform a highly reliable inference process in the programmable logic device 15. Moreover, in this case, there is an advantage that an inference result can be obtained in a shorter time than when the inference process is performed by the processor 14.
[0105] Therefore, in this embodiment, even during the period when the conversion unit 12 is performing the process of converting the new learning model 24 into logic data 25, when the control unit 13 acquires input data D1 to be subjected to the inference process, the control unit 13 first causes the programmable logic device 15 to execute the inference process, and when the reliability of the inference result by the programmable logic device 15 is lower than a predetermined value, the control unit 13 causes the processor 14 to execute the inference process based on the new learning model 24. Note that in this embodiment as well, a specific configuration example of the information processing system 1 is similar to that described in the first embodiment.
[0106] 14 is a diagram showing an operation process in the terminal device 2 of this embodiment. When a new learning model 24 is generated in the server device 5, the control unit 13 of the terminal device 2 acquires the new learning model 24 and the processor software 26 from the server device 5 through a process similar to that of the first embodiment (processes P8 and P9). At this time, the control unit 13 sets an update flag indicating that the learning model 24 has been updated.
[0107] Thereafter, before logic data 25 corresponding to a new learning model 24 is generated in the server device 5, when the control unit 13 detects input data D1 to be the subject of inference processing (process P35), the control unit 13 first instructs the programmable logic device 15 to execute the inference processing (process P36). At this time, the control unit 13 provides the input data D1 to the programmable logic device 15.
[0108] When the programmable logic device 15 is instructed to execute the inference process, it starts executing the inference process based on the old learning model 24 before the new learning model 24 is generated (process P37). After a predetermined time T2 has elapsed, the inference process ends (process P38), and the programmable logic device 15 outputs the inference result to the control unit 13 (process P39).
[0109] When the control unit 13 acquires the inference result from the programmable logic device 15, it judges the inference result (process P40). That is, the control unit 13 judges whether the reliability of the inference result by the programmable logic device 15 is equal to or higher than a predetermined value. For example, the control unit 13 selects a pattern image having the highest degree of match with the input image included in the input data D1, and judges whether the degree of match of the selected pattern image is equal to or higher than 80%. For example, if the degree of match of the pattern image having the highest degree of match with the input image is equal to or higher than 80%, the control unit 13 judges that the reliability of the inference result by the programmable logic device 15 is equal to or higher than a predetermined value. If the reliability of the inference result by the programmable logic device 15 is equal to or higher than a predetermined value, the control unit 13 outputs the inference result to a predetermined output destination and ends the inference process.
[0110] On the other hand, if the degree of match of the pattern image that is most similar to the input image is less than 80%, the control unit 13 determines that the reliability of the inference result by the programmable logic device 15 is lower than a predetermined value. If the reliability of the inference result by the programmable logic device 15 is lower than a predetermined value, the control unit 13 switches the execution subject of the inference process from the programmable logic device 15 to the processor 14 (process P41). Then, the control unit 13 instructs the processor 14 to execute the inference process (process P42). At this time, the control unit 13 provides the processor 14 with input data D1.
[0111] When the processor 14 is instructed to execute the inference process, it starts executing the inference process based on the new learning model 24 (process P43). Then, after a predetermined time T1 has elapsed, the inference process ends (process P44), and the processor 14 outputs the inference result to the control unit 13 (process P45). When the control unit 13 obtains the inference result from the processor 14, it outputs the inference result to a predetermined output destination (process P46).
[0112] In this manner, when the information processing system 1 of the present embodiment acquires input data D1 to be subjected to inference processing during a period in which the conversion unit 12 is converting the new learning model 24 into logic data 25, the information processing system 1 causes the programmable logic device 15 to execute the inference processing before causing the processor 14 to execute the inference processing. Then, the information processing system 1 determines whether or not to cause the processor 14 to execute the inference processing depending on the processing result by the programmable logic device 15. For example, as described above, the information processing system 1 is configured to cause the processor 14 to execute the inference processing based on the new learning model 24 when the reliability of the inference result by the programmable logic device 15 is lower than a predetermined value.
[0113] Next, a processing procedure of the control unit 13 in this embodiment will be described. Fig. 15 is a flowchart showing an example of a processing procedure by the control unit 13. For example, this processing is performed by the CPU of the control unit 13 executing a predetermined program. Also, this processing is performed by the control unit 13 when the power supply to the terminal device 2 is turned on.
[0114] When starting this process, the control unit 13 first initially sets the execution subject of the inference process to the programmable logic device 15 (step S20).
[0115] Next, the control unit 13 judges whether or not a notification indicating that a new learning model 24 has been generated has been received from the server device 5 (step S21). If a notification has been received (YES in step S21), the control unit 13 acquires the new learning model 24 from the server device 5 (step S22) and acquires the processor software 26 (step S23). Then, the control unit 13 sets an update flag indicating that the learning model 24 has been updated in the internal memory (step S24). This update flag is a flag indicating that a process of converting the new learning model 24 into logic data 25 is being performed in the server device 5. On the other hand, if a notification indicating that a new learning model 24 has been generated has not been received from the server device 5 (NO in step S2), the control unit 13 skips the processes of steps S21 to S24.
[0116] Next, the control unit 13 judges whether or not the input data D1 to be the target of the inference process has been detected (step S6). If the input data D1 has been detected (YES in step S6), the control unit 13 causes the programmable logic device 15 to execute the inference process for the input data D1 (step S26). As a result, the programmable logic device 15 executes the inference process based on the new learning model 24 and the processor software 26 acquired in steps S22 and S23. However, the learning model applied to this inference process is the old learning model before the new learning model 24 was generated.
[0117] When the inference process by the programmable logic device 15 is completed, the control unit 13 judges the reliability of the inference result (step S27). That is, the control unit 13 judges whether the reliability of the inference result by the programmable logic device 15 is lower than a predetermined value (step S28). If the reliability of the inference result is lower than the predetermined value (YES in step S28), the control unit 13 checks whether the update flag is set (step S29). As a result, if the update flag is set (YES in step S29), the control unit 13 switches the execution subject of the inference process from the programmable logic device 15 to the processor 14 (step S30) and causes the processor 14 to execute the inference process (step S31). This allows the processor 14 to execute the inference process reflecting the new learning model 24.
[0118] However, if the reliability of the inference result by the programmable logic device 15 is equal to or higher than a predetermined value (NO in step S28), or if the update flag is not set (NO in step S29), the control unit 13 does not perform the processes of steps S30 and S31. This is because even if the inference process is performed by the processor 14, the same result as the inference result by the programmable logic device 15 is obtained, and therefore there is no point in performing the inference process by the processor 14.
[0119] Next, the control unit 13 judges whether or not a notification indicating that logic data 25 corresponding to the new learning model 24 has been generated has been received from the server device 5 (step S32). If a notification has been received (YES in step S32), the control unit 13 acquires the logic data 25 corresponding to the new learning model 24 from the server device 5 (step S33). Then, the control unit 13 executes a process of reconfiguring the circuit of the programmable logic device 15 based on the logic data 25 acquired from the server device 5 (step S34). Then, when the reconfiguration of the circuit in the programmable logic device 15 is completed, the control unit 13 releases the update flag (step S35). On the other hand, if a notification indicating that logic data 25 has been generated has not been received from the server device 5 (NO in step S32), the control unit 13 skips the processes of steps S33 to S35.
[0120] Next, the control unit 13 judges whether the power of the terminal device 2 has been turned off (step S36). If the power has not been turned off (NO in step S36), the control unit 13 repeats the processes from step S21 onwards. On the other hand, if the power has been turned off (YES in step S36), the process by the control unit 13 ends.
[0121] As described above, in the information processing system 1 of this embodiment, when the input data D1 to be the subject of the inference processing is acquired, the information processing system 1 first executes the inference processing by the programmable logic device 15, even if a new learning model 24 is generated and the logic data 25 based on the new learning model 24 is not reflected in the programmable logic device 15. This enables the information processing system 1 to quickly obtain the result of the inference processing for the input data D1.
[0122] However, if the reliability of the inference result by the programmable logic device 15 is lower than a predetermined value, the information processing system 1 does not immediately adopt the inference result by the programmable logic device 15, but instead has the processor 14 execute inference processing based on a new learning model 24. Therefore, in the information processing system 1 of this embodiment, if the reliability of the inference result by the programmable logic device 15 is low, it is possible to obtain a highly reliable inference result by having the processor 14 execute the inference processing again.
[0123] The configuration and operation of this embodiment other than the above-mentioned points are the same as those described in the first embodiment.
[0124] Third embodiment Next, a third embodiment of the present invention will be described. In the first and second embodiments, when the control unit 13 acquires input data D1 to be subjected to inference processing during a period in which the new learning model 24 is converted into logic data 25, the control unit 13 causes the processor 14 to execute the inference processing, thereby enabling the inference processing based on the new learning model 24 to be performed early.
[0125] However, the input data D1 to be subjected to the inference process may contain a plurality of input images. In such a case, the processor 14 must execute the inference process for each of the plurality of input images in sequence. Since the inference process by the processor 14 takes more time than the inference process by the programmable logic device 15, it is expected that a significant amount of time will be required until the inference process for each of the plurality of input images is completed.
[0126] Therefore, in this embodiment, when the terminal device 2 acquires input data D1 including a plurality of input images during a period in which the new learning model 24 is being converted into logic data 25, a configuration example will be described in which the time required to complete the inference process for each of the plurality of input images can be shortened by distributing the inference process to other terminal devices 3 connected to the network 4. Note that, in this embodiment as well, the overall configuration example of the information processing system 1 is similar to that described in the first embodiment.
[0127] 16 is a block diagram showing an example of the configuration of the terminal device 2 in this embodiment. The terminal device 2 of this embodiment differs from the first embodiment in the inference processing control unit 30. That is, the inference processing control unit 30 of this embodiment further includes a device determination unit 30b and a distributed processing unit 30c in addition to a switching unit 30a.
[0128] After acquiring the new learning model 24 and the processor software 26 from the server device 5, when the inference processing control unit 30 acquires input data D1 to be inferred without acquiring logic data 25 corresponding to the new learning model 24, the inference processing control unit 30 determines whether the input data D1 includes multiple input images. If the input data D1 includes multiple input images and it is necessary to perform inference processing for each of the multiple input images, the inference processing control unit 30 causes the device determination unit 30b and the distributed processing unit 30c to function.
[0129] The device determination unit 30b acquires device information from the other terminal device 3 connected to the network 4, and analyzes the device information to determine whether the other terminal device 3 is a device capable of performing inference processing. Here, the device information acquired by the device determination unit 30b from the other terminal device 3 includes, for example, information on the processing capacity of hardware resources such as a CPU and memory, information on the current usage rate of the hardware resources, and version information of the operating system. The device determination unit 30b refers to such information to determine whether the other terminal device 3 is a device capable of performing inference processing. Note that even if the hardware resources and the version of the operating system of the other terminal device 3 satisfy the conditions necessary for performing inference processing, if the current usage rate of the hardware resources in the other terminal device 3 exceeds a predetermined value, it can be said that the other terminal device 3 is in a busy state due to other processing. Therefore, the device determination unit 30b excludes the other terminal device 3 in a busy state from devices capable of performing inference processing.
[0130] Furthermore, when multiple other terminal devices 3 are connected to the network 4, the device determination unit 30b acquires device information from each of the multiple other terminal devices 3 and determines whether or not each of the multiple other terminal devices 3 is a device capable of performing inference processing. Then, the device determination unit 30b selects at least one other terminal device 3 connected to the network 4 as a device that will execute distributed processing. Note that the device determination unit 30b may select multiple terminal devices 3 as devices that will execute distributed processing.
[0131] When the device determination unit 30b selects another terminal device 3 that will execute distributed processing, it instructs the selected other terminal device 3 to obtain a new learning model 24 and processor software 26 from the server device 5. As a result, the other terminal device 3 accesses the server device 5, obtains the new learning model 24 and processor software 26 generated in the server device 5, and prepares a state in which it can perform inference processing.
[0132] When inference processing is performed on a plurality of input images included in the input data D1, the distributed processing unit 30c divides the plurality of input images into a first image group for which inference processing is to be performed by the processor 14 of the terminal device 2, and a second image group for which inference processing is to be performed by another terminal device 3 selected by the device determination unit 30b. The distributed processing unit 30c then outputs the first image group to the processor 14 for performing inference processing, and outputs the second image group to the other terminal device 3 for performing inference processing. This allows the inference processing in the processor 14 of the terminal device 2 and the inference processing in the processor 14 of the other terminal device 3 to be performed in parallel, making it possible to simultaneously carry out inference processing on a plurality of input images.
[0133] FIG. 17 is a diagram showing an operation process in the information processing system 1 in this embodiment. A new learning model 24 is generated in the server device 5, and during a period in which the new learning model 24 is converted into logic data 25, the terminal device 2 detects input data D1 to be subjected to inference processing. When the terminal device 2 detects the input data D1 and detects that the input data D1 contains multiple input images (process P50), the terminal device 2 requests device information from the other terminal device 3 via the network 4 (process P51). Upon receiving this request, the other terminal device 3 transmits device information to the terminal device 2 (process P52). This allows the terminal device 2 to obtain the device information of the other terminal device 3.
[0134] When the terminal device 2 acquires the device information of the other terminal device 3, it judges whether the other terminal device 3 is a device capable of performing inference processing (process P53). As a result, if the other terminal device 3 is capable of performing inference processing, the terminal device 2 instructs the other terminal device 3 to acquire a new learning model 24 and processor software 26 from the server device 5 (process P54). As a result, the other terminal device 3 requests the new learning model 24 and processor software 26 from the server device 5 (process P55), and acquires the new learning model 24 and processor software 26 from the server device 5 (process P56). Then, the other terminal device 3 notifies the terminal device 2 that acquisition of the new learning model 24 and processor software 26 has been completed (process P57).
[0135] When the other terminal device 3 is ready for the inference process, the terminal device 2 transmits one input image included in the input data D1 to the other terminal device 3, and the other terminal device 3 starts the inference process for the one input image (process P59). As a result, the other terminal device 3 executes the inference process based on the new learning model 24. The terminal device 2 also starts the inference process for another input image included in the input data D1 in the processor 14 of the terminal device 2 (process P60). As a result, the terminal device 2 can also execute the inference process based on the new learning model 24 in the terminal device 2. The inference process in the terminal device 2 ends after a predetermined time T1 has elapsed since the start of the inference process (process P61). The inference process in the other terminal device 3 ends after a predetermined time T1 has elapsed since the start of the inference process (process P62). When the inference process ends, the other terminal device 3 outputs the inference result to the terminal device 2 (process P63).
[0136] When the terminal device 2 acquires an inference result for one input image from the other terminal device 3, it next transmits another input image included in the input data D1, and causes the other terminal device 3 to subsequently start inference processing for the still further input image (process P65). The terminal device 2 also causes its own device to start inference processing for the still further input image included in the input data D1 (process P66). The inference processing in the terminal device 2 ends after a predetermined time T1 has elapsed since the start of the inference processing (process P67). The inference processing in the other terminal device 3 ends after a predetermined time T1 has elapsed since the start of the inference processing (process P68). When the inference processing ends, the other terminal device 3 outputs the inference result to the terminal device 2 in the same manner as described above (process P69).
[0137] As described above, the terminal device 2 repeats the process of executing the inference process in its own device and the inference process in the other terminal device 3 in parallel, and completes the inference process for each of the multiple input images included in the input data D1. Then, when the inference process for all the input images is completed, the terminal device 2 outputs the inference result to a predetermined output destination (process P70).
[0138] Therefore, when the input data D1 includes a plurality of input images, the information processing system 1 of this embodiment can execute a plurality of inference processes based on the new learning model 24 in parallel by distributing the inference processes between the terminal device 2 and the other terminal device 3. This makes it possible to efficiently obtain inference results for all input images compared to the case where one terminal device 2 executes inference processes for a plurality of input images in sequence.
[0139] In the above, the case where the input data D1 includes a plurality of input images is exemplified, but the present invention is not limited to this. For example, the control unit 13 of the terminal device 2 can communicate with the other terminal devices 3 via the network 4, and when the processor 14 of the terminal device 2 executes a specific process based on the new learning model 24 during the period when the conversion unit 12 of the server device 5 converts the new learning model 24 into the logic data 25, the control unit 13 may distribute a part of the specific process based on the new learning model 24 to the other terminal devices 3. That is, when the control unit 13 executes a specific process based on the new learning model 24 in the processor 14 of the own device, the control unit 13 has a configuration in which the other terminal devices 3 distribute a part of the specific process based on the new learning model 24, thereby providing an advantage that the specific process can be executed more efficiently than when the terminal device 2 executes the specific process alone.
[0140] In addition, for the configuration and operation other than the above-mentioned points in this embodiment, it is possible to apply those described in the first or second embodiment. Therefore, for example, when the terminal device 2 executes a specific process based on the new learning model 24, the programmable logic device 15 may be made to execute the specific process first as described in the second embodiment. Then, when the reliability of the result of the specific process by the programmable logic device 15 is low, the information processing system 1 may be configured to distribute the specific process to the terminal device 2 and another terminal device 3 and have them process the same.
[0141] (Modification) Although the embodiment of the present invention has been described above, the present invention is not limited to the contents described in the above embodiment, and various modified examples are applicable.
[0142] For example, in the above embodiment, the information processing system 1 includes a server device 5, and the server device 5 is equipped with the functions of the machine learning execution unit 11 and the conversion unit 12. However, this is not limited to the above, and the functions of the machine learning execution unit 11 and the conversion unit 12 may be installed in the terminal device 2. In this case, the terminal device 2 is equipped with the processor 14, the programmable logic device 15, the machine learning execution unit 11, the conversion unit 12, and the control unit 13. Therefore, the terminal device 2 generates a new learning model for a specific process by executing machine learning by deep learning, and converts the new learning model into logic data 25 that can be operated by the programmable logic device 15. The terminal device 2 is realized as a configuration capable of causing the processor 14 to execute a specific process based on the new learning model 24 during the period in which the new learning model 24 is converted into the logic data 25.
[0143] In the above embodiment, the terminal devices 2 and 3 are configured as personal computers (PCs) or tablet terminals, but are not limited to these. For example, the terminal devices 2 and 3 may be devices configured as MFPs (Multifunction Peripherals) equipped with a scanning function that optically reads an image of a document and generates image data.
[0144] In the above embodiment, as an example of the specific processing based on the learning model 24, a case has been exemplified in which an input image is included in the input data D1, and an inference processing is executed to infer the degree of matching between each of a plurality of pattern images set as classification candidates and the input image. However, the specific processing is not limited to the inference processing as described above. In other words, the specific processing in the present invention is not limited to image processing.
[0145] In the above embodiment, an example has been described in which the program executed by the CPU of the control unit 13 is stored in advance in the storage unit 29. However, the program may be provided in a form that allows it to be installed in the terminal devices 2 and 3 at any time. In this case, the program may be provided in a form that allows it to be downloaded to the terminal devices 2 and 3 via the network 4 or the like, or may be provided in a state recorded on a computer-readable recording medium such as a CD-ROM or a USB memory. [Explanation of symbols]
[0146] 1. Information Processing Systems 2,3 Terminal device (information processing device) 4. Network 5 Server equipment 11 Machine Learning Execution Department 12 Conversion section 13 Control section 14 processors 15 Programmable Logic Devices 24 Learning Model 25 Logic Data 26 Processor Software
Claims
1. An information processing system that executes a specific process based on a learning model, A processor; A programmable logic device that allows the circuit to be reconfigured by rewriting logic data; A machine learning execution unit that executes machine learning to generate a new learning model for the specific process; a conversion unit for converting the new learning model into logic data operable on the programmable logic device; a control unit that causes the processor to execute the specific process based on the new learning model during a period in which the new learning model is being converted into logic data by the conversion unit; An information processing system comprising:
2. The information processing system of claim 1, characterized in that, upon completion of the conversion in the conversion unit, the control unit reconfigures the circuit of the programmable logic device using the logic data generated by the conversion unit, and switches the execution entity of the specific processing based on the new learning model from the processor to the programmable logic device.
3. 3. The information processing system according to claim 1, wherein the programmable logic device is an FPGA.
4. The information processing system according to claim 1 , wherein the machine learning execution unit executes machine learning using deep learning.
5. 5. The information processing system according to claim 1, wherein the specific processing is image processing.
6. 6. The information processing system according to claim 1, wherein the specific process is a process of inferring, by a learning model, which of a plurality of predetermined pattern images the input image matches.
7. 7. The information processing system according to claim 6, wherein the pattern image is a logo image.
8. The information processing system described in any one of claims 1 to 7, characterized in that during a period in which the new learning model is converted into logic data by the conversion unit, the control unit causes the programmable logic device to execute the specific processing before causing the processor to execute the specific processing, and decides whether to cause the processor to execute the specific processing depending on the processing result by the programmable logic device.
9. The information processing system according to claim 8, characterized in that the control unit causes the processor to execute the specific processing based on the new learning model when the reliability of the processing result of the programmable logic device is lower than a predetermined value.
10. The control unit is capable of communicating with an external information processing device via a network, and when the control unit causes the processor to execute the specific processing based on the new learning model during a period in which the new learning model is converted into logic data by the conversion unit, the control unit causes the information processing device to perform distributed processing of a portion of the specific processing based on the new learning model.An information processing system as described in any one of claims 1 to 9.
11. the processor, the programmable logic device, and the control unit are implemented in a terminal device; 11. The information processing system according to claim 1, wherein the machine learning execution unit and the conversion unit are implemented in a server device capable of communicating with the terminal device.
12. The information processing system according to any one of claims 1 to 10, wherein the processor, the programmable logic device, the machine learning execution unit, the conversion unit, and the control unit are implemented in a terminal device.
13. A processor; A programmable logic device that allows the circuit to be reconfigured by rewriting logic data; An information processing method for executing a specific process based on a learning model in a terminal device comprising: a first step of generating a new learning model for said particular process by performing machine learning; a second step of converting the new learning model into logic data operable on the programmable logic device; a third step of causing the processor to execute the specific processing based on the new learning model during the period in which the new learning model is converted into logic data in the second step; 13. An information processing method comprising:
14. a fourth step of reconfiguring a circuit of the programmable logic device using the logic data generated in the second step upon completion of the conversion in the second step; A fifth step of switching an execution subject of the specific processing based on the new learning model from the processor to the programmable logic device; 14. The information processing method according to claim 13, further comprising:
15. The information processing method according to claim 13 or 14, wherein the first step comprises executing machine learning by deep learning.
16. 16. The information processing method according to claim 13, wherein the specific processing is image processing.
17. 17. The information processing method according to claim 13, wherein the specific process is a process of inferring, by a learning model, which of a plurality of predetermined pattern images the input image matches.
18. 18. The information processing method according to claim 17, wherein the pattern image is a logo image.
19. The information processing method described in any one of claims 13 to 18, characterized in that the third step, during a period in which the new learning model is converted into logic data in the second step, causes the programmable logic device to execute the specific processing before causing the processor to execute the specific processing, and determines whether or not to cause the processor to execute the specific processing depending on the processing result by the programmable logic device.
20. The information processing method according to claim 19, wherein the third step causes the processor to execute the specific processing based on the new learning model when the reliability of the processing result of the programmable logic device is lower than a predetermined value.
21. the terminal device is capable of communicating with an external information processing device via a network; The information processing method according to any one of claims 13 to 20, characterized in that when the processor is caused to execute the specific processing based on the new learning model during the period in which the new learning model is converted into logic data in the second step, the third step causes the information processing device to perform distributed processing of a portion of the specific processing based on the new learning model.
22. A processor; A programmable logic device that allows the circuit to be reconfigured by rewriting logic data; A program for causing a terminal device to execute a specific process based on a learning model by being executed in the terminal device, the program comprising: a first step of generating a new learning model for said particular process by performing machine learning; a second step of converting the new learning model into logic data operable on the programmable logic device; a third step of causing the processor to execute the specific processing based on the new learning model during the period in which the new learning model is converted into logic data in the second step; A program characterized by executing the above.
Citation Information
Patent Citations
Data processing system, data processing method, resource manager device, accelerator device, and program
JP2013045219A
Neural network construction method, neural network device and neural network device update method
JP2018132830A
Image processing apparatus, image processing method, and image processing program
JP2019168856A
Machine learning runtime library for neural network acceleration
WO2019079008A1
Network interface card, computer, circuit information rewriting method and program
WO2020122024A1
