Apparatus, method and program

By employing a lightweight image analysis algorithm in conjunction with the first-stage neural network to identify major categories and loading corresponding second-stage networks, the method addresses RAM limitations, thereby reducing execution time in image recognition on embedded devices.

JP7532934B2Active Publication Date: 2024-08-14FUJI ELECTRIC CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020103187
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-06-15
Publication Date
2024-08-14
Estimated Expiration
2040-06-15

AI Technical Summary

Technical Problem

Image recognition processing using multiple neural networks on embedded devices is hindered by RAM limitations, leading to long execution times due to the inability to load second-stage neural networks.

Method used

Implement a method that uses a lightweight image analysis algorithm in parallel with the first-stage neural network to identify major categories, followed by loading and executing the corresponding second-stage neural network based on the first-stage results, reducing memory usage and execution time.

Benefits of technology

This approach reduces the overall execution time of image recognition processing without exceeding the RAM capacity of embedded devices by optimizing memory usage and parallel processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532934000007
    Figure 0007532934000007
  • Figure 0007532934000002
    Figure 0007532934000002
  • Figure 0007532934000001
    Figure 0007532934000001
Patent Text Reader

Abstract

To reduce the time required for executing image recognition processing using machine learning models in multiple stages.SOLUTION: A device according to one embodiment for executing recognition processing which is implemented by configuring inference processing of machine learning models in multiple stages includes: a recognition unit which acquires a recognition result in the m-th stage of input data by inference processing of a machine learning model in the m-th stage by using a parameter of the machine learning model in the m-th stage; an analysis unit which acquires a recognition result in the m-th stage of the input data by analysis processing of a light analysis algorithm; a development unit which develops parameters of a machine learning model in the (m+1)-th stage on a memory in accordance with the recognition result in the m-th stage acquired by the analysis unit; and a selection unit which selects a parameter of the machine learning model in the (m+1)-th stage corresponding to the recognition result in the m-th stage acquired by the recognition unit, out of the parameters of the machine learning model in the (m+1)-th stage developed on the memory by the development unit.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an apparatus, a method, and a program. [Background technology]

[0002] In recent years, image recognition processing using machine learning models such as neural networks has been put into practical use, and when performing complex image recognition processing (such as classifying products in an image into hundreds of categories), multiple machine learning models are used in multiple stages.

[0003] For example, a neural network that recognizes the major classification of products in an image is used in the first stage, and multiple neural networks that recognize subcategories of products within a specific major classification are used in the second stage.After the major classification of products in the image is recognized by the first stage neural network, the second stage neural network corresponding to this recognition result is used to recognize the subcategories of those products.

[0004] As a conventional technique for image processing using a machine learning model, a technique is known in which an appropriate machine learning model is selected from a plurality of machine learning models, and information of an input image is estimated using the selected machine learning model (for example, Patent Document 1). [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2019-87229 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, when image recognition processing using multiple neural networks in multiple stages is executed on an embedded device, the second and subsequent stages of neural networks may not be loaded until the recognition results of the first stage of neural network are output due to limitations in RAM (Random Access Memory) capacity, which may result in a longer execution time for image recognition processing.

[0007] An object of one embodiment of the present invention is to reduce the execution time of image recognition processing that uses multiple machine learning models in multiple stages. [Means for solving the problem]

[0008] In order to achieve the above-mentioned object, an apparatus according to one embodiment is an apparatus that executes recognition processing realized by configuring inference processing of a machine learning model in multiple stages, and has: a recognition unit that uses parameters of an m-th stage machine learning model to obtain an m-th stage recognition result of input data through inference processing of the m-th stage machine learning model; an analysis unit that obtains the m-th stage recognition result of the input data through analysis processing of a lightweight analysis algorithm; an expansion unit that expands parameters of an m+1-th stage machine learning model onto a memory in accordance with the m-th stage recognition result obtained by the analysis unit; and a selection unit that selects parameters of the m+1-th stage machine learning model that correspond to the m-th stage recognition result obtained by the recognition unit from the parameters of the m+1-th stage machine learning model expanded onto the memory by the expansion unit. Effect of the Invention

[0009] The execution time of image recognition processing that uses multiple machine learning models in multiple stages can be reduced. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram showing an example of a time chart of conventional image recognition processing. [Diagram 2] FIG. 1 is a diagram illustrating an example of RAM usage in conventional image recognition processing. [Diagram 3] FIG. 4 is a diagram showing an example of a time chart of the image recognition process according to the embodiment. [Figure 4] 11 is a diagram showing an example of RAM usage in the image recognition process according to the embodiment. FIG. [Diagram 5] FIG. 2 is a diagram illustrating an example of a hardware configuration of an embedded device according to the present embodiment. [Figure 6] FIG. 2 is a diagram illustrating an example of a functional configuration of an embedded device according to the present embodiment. [Figure 7] FIG. 4 is a diagram illustrating an example of a flowchart of an image recognition process according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] An embodiment of the present invention will be described below. In this embodiment, a neural network is assumed as a machine learning model, and a case will be described in which an embedded device executes image recognition processing using multiple neural networks in multiple stages. However, a neural network is only one example of a machine learning model, and all or part of the multiple machine learning models used in the image recognition processing may be machine learning models other than a neural network.

[0012] An embedded device is, for example, a device or system that is built into an industrial device or home appliance and realizes a specific function (i.e., an image recognition function in this embodiment). Compared to a PC (personal computer) or the like, an embedded device generally has a limited memory capacity such as a RAM (i.e., a small memory capacity).

[0013] However, this embodiment is not limited to cases where an embedded device performs image recognition processing, but is similarly applicable to cases where any device or apparatus (especially, for example, a wearable device with limited memory capacity such as RAM) performs image recognition processing.

[0014] <Conventional image recognition processing> First, a case where an embedded device executes conventional image recognition processing using multiple neural networks in multiple stages will be described. In the following, as an example, a case where a neural network that recognizes categories representing major classifications of products in an input image is defined as the first stage, and multiple neural networks that recognize categories representing minor classifications of products of a specific major classification are defined as the second stage, and a case where a major classification and a minor classification of products in an input image are recognized (identified) by image recognition processing realized by processing of the neural network in the first stage and processing of the neural network in the second stage will be described. However, it is assumed that only one product (object) is included in the image (therefore, identifying the category of an object in an image is synonymous with identifying the category of an image).

[0015] Examples of major product categories include "rice balls," "snacks," and "drinks." Examples of subcategories within the major category "rice balls" include "tuna mayo," "plum," and "bonito flakes." Similarly, examples of subcategories within the major category "snacks" include "chocolate," "snacks," and "gum." Similarly, examples of subcategories within the major category "drinks" include "coffee," "juice," and "alcohol."

[0016] In addition, the multiple neural networks used in the second stage exist for each major category; for example, there is a neural network that recognizes subcategories of the major category "onigiri," a neural network that recognizes subcategories of the major category "sweets," and a neural network that recognizes subcategories of the major category "drinks."

[0017] At this time, as shown in FIG. 1, after the first-stage neural network is loaded when a program for executing image recognition processing on an embedded device is started, the image to be recognized in the image recognition processing is input and the processing of the first-stage neural network is executed. Then, among the multiple neural networks used in the second stage, a neural network corresponding to the processing result of the first-stage neural network (i.e., the major classification estimated by the first-stage neural network) is loaded, and the processing of the second-stage neural network is executed with the image as input. As a result, the processing result of the second-stage neural network (i.e., the minor classification) is obtained, and the major and minor classifications of the products in the image are recognized. Note that loading a neural network means expanding the parameters of the neural network (for example, the weights and biases of the fully connected layer, the parameters and biases of the filters (or kernels) of the convolution layer, etc.) on the RAM.

[0018] Therefore, the loading time of the first stage neural network is T 11 , the processing time of the first stage neural network is T 12 , The loading time of the second stage neural network is T 21 , the processing time of the second stage neural network is T 22 Then, the processing time (execution time) of the image recognition process is T 11 +T 12 +T 21 +T 22 It becomes.

[0019] Furthermore, if the parameter size of the first-stage neural network is L1 and the parameter size of the second-stage neural network is L2, then the RAM usage after the first-stage neural network is loaded will be L1, and the RAM usage after the second-stage neural network is loaded will be L1+L2, as shown in Figure 2. However, for simplicity, Figure 2 only shows the RAM usage of the neural networks.

[0020] As described above, when performing image recognition processing in an embedded device, in the conventional image recognition processing, among the multiple neural networks used in the second stage, a neural network corresponding to the processing result of the first stage neural network is loaded. This is because if all neural networks used in the second stage are loaded, the RAM usage may exceed the upper limit capacity. For example, while the RAM capacity (i.e., the upper limit capacity) of an embedded device is generally about 1 GB to 4 GB, if the parameter size of the first stage neural network is 300 MB, the parameter size of each neural network in the second stage is 90 MB, and the number of major classifications is 60 (i.e., the number of neural networks used in the second stage is also 60), a RAM usage of 300 + 60 × 90 = 5700 MB is required, which exceeds the upper limit capacity.

[0021] <Image Recognition Processing According to the Present Embodiment> Next, a case where an embedded device executes image recognition processing according to this embodiment will be described. As in the above, as an example, a neural network that recognizes categories representing major classifications of products in an input image is set as a first stage, and multiple neural networks that recognize categories representing minor classifications of products of a specific major classification are set as a second stage, and a case where major and minor classifications of products in an input image are recognized (identified) by image recognition processing realized by processing of the first stage neural network and processing of the second stage neural network will be described.

[0022] At this time, as shown in FIG. 3, when a program for causing an embedded device to execute the image recognition processing according to this embodiment is started, the first-stage neural network and a module (e.g., a class, a function, a program module, etc.) for executing a lightweight image analysis algorithm are loaded in parallel. Here, the lightweight image analysis algorithm is an algorithm that recognizes objects in an input image (in this embodiment, identifies a major category of products in an image) relatively lightly (i.e., with low memory usage and low calculation amount) compared to image processing using a neural network by analyzing the input image. Examples of the lightweight image analysis algorithm include an algorithm that recognizes a first category by performing shape analysis using template matching, and an algorithm that recognizes a first category by performing size detection using corner detection. However, the recognition accuracy of the lightweight image analysis algorithm is generally lower than that of the first-stage neural network.

[0023] Next, the image to be recognized in the image recognition process is input, and the processing of the first-stage neural network, the processing of the lightweight image analysis algorithm, and the subsequent loading of the second-stage neural network candidates are executed in parallel. Here, the second-stage neural network candidates refer to the second-stage neural networks, among the neural networks used in the second stage, that correspond to the processing results (recognition results) of the lightweight image analysis algorithm. For example, if the recognition results of the lightweight image analysis algorithm are the major categories "rice ball" and "drinks," the second-stage neural network candidates are the neural network corresponding to the major category "rice ball" and the neural network corresponding to the major category "drinks."

[0024] Then, among the candidates for the second stage neural network, a neural network corresponding to the processing result of the first stage neural network (i.e., the major classification estimated by the first stage neural network) is selected to be executed in the second stage, and the image is input and the processing of the neural network selected to be executed in the second stage is executed. This results in the processing result of the second stage neural network (i.e., the minor classification), and the major and minor classifications of the products in the image are recognized.

[0025] Therefore, the loading time of the first stage neural network is T 11 ,The loading time of the lightweight image analysis algorithm is S1(≦T 11 ), the processing time of the first stage neural network is T 12 +Δ1, the processing time of the lightweight analysis algorithm is S2, the loading time of the second-stage neural network candidate is T', and the processing time of the second-stage neural network is T 22 Then, the execution time of the image recognition process according to this embodiment is T 11 +(T 12 +Δ1)+T 22 However, T 12 +Δ1≧S2+T', where Δ1 is the additional time required to execute the first-stage neural network processing in parallel, and T' is the sum of all the loading times (including the additional time required to execute in parallel) of the second-stage neural network candidates.

[0026] In general, the increase in time Δ1 associated with parallel execution of the first stage neural network processing is very short compared to the load time of the neural network, so T 11 +(T 12 +Δ1)+T 22 <T 11 +T 12 +T 21 +T 22 In this way, the image recognition process according to this embodiment has a shorter execution time than the conventional image recognition process.

[0027] In addition, the parameter size of the first-stage neural network is L1, the size required to load modules that execute the lightweight image analysis algorithm is K, and the parameter sizes of the two second-stage neural network candidates are L 21 and L 22 Then, as shown in Figure 4, the RAM usage after loading the first stage neural network is L1+K, and the RAM usage after loading the second stage neural network candidate is L1+K+L. 21 +L 22 Furthermore, after the processing result of the first-stage neural network is obtained, all the second-stage neural network candidates except for the parameters of the neural network that corresponds to the processing result can be released from memory, so the RAM usage becomes L1+K+L2. However, L2 is the parameter size of the neural network that corresponds to the processing result of the first-stage neural network among the second-stage neural network candidates (L 21 Or L 22 However, for simplicity, Fig. 4 shows only the RAM usage of the neural network and the lightweight image analysis algorithm.

[0028] Thus, in the image recognition processing according to this embodiment, the amount of RAM used increases compared to conventional image recognition processing, but if the number of types of categories obtained as a result of processing by the lightweight image analysis algorithm is appropriate, it is possible to reduce the execution time of the image recognition processing without exceeding the RAM capacity of the embedded device. Note that the appropriate number of types of categories obtained as a result of processing by the lightweight image analysis algorithm varies depending on the RAM capacity of the embedded device, but can be, for example, about several types.

[0029] Hereinafter, the embedded device that executes the image recognition processing according to this embodiment will be referred to as the "embedded device 10" and the embedded device 10 will be described. As described above, the image recognition processing executed by the embedded device 10 according to this embodiment is realized by the processing of a lightweight image analysis algorithm, the processing of a first-stage neural network, and the processing of a second-stage neural network. However, this embodiment can also be similarly applied to image recognition processing including the processing of a third-stage or later neural network.

[0030] <Hardware configuration of embedded device 10> Next, the hardware configuration of the embedded device 10 according to this embodiment will be described with reference to Fig. 5. Fig. 5 is a diagram showing an example of the hardware configuration of the embedded device 10 according to this embodiment.

[0031] 5, the embedded device 10 according to this embodiment includes an input / output I / F 11, a ROM (Read Only Memory) 12, a RAM 13, and a processor 14. Each of these pieces of hardware is connected to each other via a bus 15 so as to be able to communicate with each other.

[0032] The input / output I / F 11 is an input / output interface between other devices or apparatuses (e.g., devices or apparatuses in which the embedded device 10 is embedded, etc.). The embedded device 10 can input and output various data (e.g., images, etc.) between the embedded device 10 and other devices or apparatuses via the input / output I / F 11.

[0033] The ROM 12 is a non-volatile storage device that stores various data (e.g., an image recognition program 100 and neural network parameters described below). The RAM 13 is a volatile storage device that temporarily holds various data (e.g., neural network parameters, a module that executes a lightweight image analysis algorithm, etc.). The RAM 13 is used as the main storage device of the embedded device 10. The processor 14 is, for example, an arithmetic device such as an MPU (Micro Processing Unit) or a CPU (Central Processing Unit).

[0034] The embedded device 10 according to the present embodiment has the hardware configuration shown in Fig. 5, and can thereby realize image recognition processing, which will be described later. Note that the hardware configuration shown in Fig. 5 is merely an example, and the embedded device 10 according to the present embodiment may have other hardware configurations. For example, the embedded device 10 according to the present embodiment may have an auxiliary storage device such as a flash memory, or may have a dedicated processing unit such as a GPU (Graphics Processing Unit).

[0035] <Functional configuration of embedded device 10> Next, the functional configuration of the embedded device 10 according to the present embodiment will be described with reference to Fig. 6. Fig. 6 is a diagram showing an example of the functional configuration of the embedded device 10 according to the present embodiment.

[0036] 6, the embedded device 10 according to this embodiment includes an unpacking unit 101, a first recognition unit 102, a plurality of second recognition units 103, an image analysis unit (lightweight algorithm) 104, and a selection unit 105. Each of these units is realized by, for example, processing that an image recognition program 100 stored in the ROM 12 causes the processor 14 to execute.

[0037] Moreover, the embedded device 10 according to this embodiment has a parameter storage unit 200. The parameter storage unit 200 is realized by the ROM 12, for example.

[0038] The parameter storage unit 200 stores the parameters of each neural network (e.g., weights and biases of a fully connected layer, parameters and biases of a filter (or kernel) of a convolutional layer, etc.). Note that these parameters are assumed to have been trained in advance (i.e., their values ​​have been adjusted so that a desired image recognition process can be realized).

[0039] The expansion unit 101 expands (loads) parameters of a neural network, a module for executing a lightweight image analysis algorithm, and the like onto the RAM 13. In addition, the expansion unit 101 releases (unloads) parameters of a neural network that are no longer necessary for image recognition processing.

[0040] The first recognition unit 102 is realized by a first-stage neural network, and uses parameters of the neural network to recognize a first category of an image (input image) input as a recognition target for image recognition processing (for example, recognize a category representing a major classification of products in the image). That is, the first recognition unit 102 uses parameters of the trained neural network to execute an inference process of the neural network and recognize the first category of the input image.

[0041] The second recognition unit 103 is realized by a second-stage neural network, and recognizes a second category in an input image (for example, recognizes a category representing a subdivision of a product in the image) using parameters of the neural network. That is, the second recognition unit 103 executes an inference process of the neural network using parameters of the trained neural network, and recognizes the second category of the input image. Here, a second recognition unit 103 exists for each first category (that is, a neural network used in the second stage also exists for each first category). Hereinafter, the number of types of first categories is N, and each of the multiple second recognition units 103 is distinguished from the others by being expressed as "second recognition unit 103-1", ..., "second recognition unit 103-N", etc.

[0042] The image analysis unit 104 analyzes the input image using a lightweight image analysis algorithm, and recognizes the first category (i.e., recognizes a category representing a major classification of products in the image). Note that the image analysis unit 104 outputs, as a recognition result, the top several (including the case of only one) first categories that are preset in order of the recognition accuracy.

[0043] The selection unit 105 selects one of the multiple second recognition units 103 according to the recognition result of the first recognition unit 102. That is, the selection unit 105 selects, from the multiple neural networks used in the second stage, a neural network that corresponds to the processing result of the neural network in the first stage as the neural network to be executed in the second stage.

[0044] 6 shows a case where the embedded device 10 has the first recognition unit 102 and the second recognition unit 103, but if, for example, the processing of a third stage neural network is included in the image recognition processing, the embedded device 10 has one or more third recognition units. Similarly, in general, if the processing of an mth stage neural network is included in the image recognition processing for m=1,...,M, the embedded device 10 has one or more mth recognition units. However, the distinction between the first recognition unit to the Mth recognition unit is for convenience, and, for example, the first recognition unit to the Mth recognition unit may simply be referred to as the "recognition unit."

[0045] <Flow of image recognition processing according to this embodiment> Next, the flow of the image recognition process executed by the embedded device 10 according to this embodiment will be described with reference to Fig. 7. Fig. 7 is a diagram showing an example of a flowchart of the image recognition process according to this embodiment. Note that steps S101 to S103 and steps S201 to S204 in Fig. 7 are executed in parallel.

[0046] The development unit 101 loads parameters of a first-stage neural network onto the RAM 13 (step S101). The development unit 101 also loads a module for executing a lightweight image analysis algorithm onto the RAM 13 (step S201).

[0047] Following step S101, the first recognition unit 102 inputs an image to be recognized (step S102). Following step S201, the image analysis unit 104 inputs the same image as the image input to the first recognition unit 102 in step S102 (step S202).

[0048] Following step S102, the first recognition unit 102 uses the parameters of the first stage neural network to recognize the first category of the input image (i.e., recognize the category representing the major classification of the products in the image) (step S103).Furthermore, following step S202, the image analysis unit 104 uses a lightweight image analysis algorithm to recognize the first category of the input image (i.e., recognize the category representing the major classification of the products in the image) (step S203).

[0049] In the above step S203, the image analysis unit 104 may recognize the first category of the input image by using a plurality of types of light image analysis algorithms. However, when a plurality of types of light image analysis algorithms are executed, the processing time of steps S203 to S204 becomes longer. However, in order not to affect the execution time of the entire image recognition process, the processing of step S204 needs to be completed before the processing of step S103 is completed.

[0050] Then, the development unit 101 loads onto the RAM 13 the parameters of the neural network corresponding to the first category recognized in the above step S203 among the neural networks used in the second stage (step S204). Note that if there are multiple first categories recognized in the above step S203 (for example, if the top several first categories are recognized in order of their recognition accuracy), the parameters of multiple neural networks corresponding to these multiple first categories, respectively, are loaded onto the RAM 13.

[0051] Following steps S103 and S204, the selection unit 105 selects, from among the multiple second recognition units 103, a second recognition unit 103 corresponding to the first category recognized in the above step S103 (step S301). That is, from among the multiple second recognition units 103, the selection unit 105 selects a second recognition unit 103 realized by a neural network that recognizes a subcategory (second category) of the major category represented by the first category.

[0052] Next, the development unit 101 unloads from the RAM 13 the parameters of the neural networks used in the second stage other than the neural network that realizes the second recognition unit 103 selected in the above step S301 (step S302).

[0053] Next, the second recognition unit 103 selected in step S301 above inputs the same image as the image input to the first recognition unit 102 in step S102 above (step S303).Then, the second recognition unit 103 uses parameters of a second-stage neural network that realizes the second recognition unit 103 to recognize a second category of the input image (i.e., recognize a category representing a subdivision of the product in the image) (step S304).

[0054] As described above, the embedded device 10 according to this embodiment executes the processing of the first-stage neural network, the estimation processing by the lightweight image analysis algorithm, and the loading of the second-stage neural network corresponding to the estimation result in parallel. As a result, in the embedded device 10 according to this embodiment, when the estimation result is obtained by the first-stage neural network, the second-stage neural network is loaded on the RAM 13, so it is possible to reduce the execution time of the entire image recognition processing.

[0055] In this embodiment, as an example, a case where image recognition processing is performed by processing of a first-stage neural network and processing of a second-stage neural network has been described, but the present invention can also be applied to a case where image recognition processing is performed by processing of a neural network in a third stage or later. In this case, generally, while processing of the m-th stage neural network is being executed, estimation processing using a lightweight image analysis algorithm and loading of the (m+1)-th stage neural network corresponding to the estimation result are executed, and the (m+1)-th stage processing is executed by the neural network corresponding to the estimation result by the m-th stage neural network.

[0056] However, depending on the recognition accuracy of the lightweight image analysis algorithm, there may be cases where the (m+1)th stage neural network corresponding to the estimation result by the mth stage neural network has not been loaded. In this case, it is sufficient to load the (m+1)th stage neural network, but doing so will not achieve the effect of reducing the execution time of the entire image recognition process. For this reason, it is preferable that the recognition accuracy of the lightweight image analysis algorithm is such that the estimation result by the mth stage neural network is included in at least the top several estimation results.

[0057] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations with known technologies, etc. are possible without departing from the scope of the claims. [Explanation of symbols]

[0058] 10 Embedded Devices 11 Input / Output Interface 12 ROM 13 RAM 14 processors 15 Bus 100 Image Recognition Programs 101 Development Section 102 First Recognition Section 103 Second Recognition Section 104 Image Analysis Department 105 Selection section 200 Parameter storage section

Claims

1. An apparatus for executing a recognition process realized by configuring inference processes of a machine learning model in multiple stages, a recognition unit that obtains an m-th stage recognition result of input data by inference processing of the m-th stage machine learning model using parameters of the m-th stage machine learning model; an analysis unit that obtains the m-th stage recognition result of the input data by analysis processing of a lightweight analysis algorithm; an expansion unit that expands parameters of an (m+1)th stage of machine learning model on a memory in accordance with the mth stage recognition result obtained by the analysis unit; a selection unit that selects, from among parameters of the (m+1)-th stage machine learning model expanded in the memory by the expansion unit, parameters of the (m+1)-th stage machine learning model that corresponds to the m-th stage recognition result obtained by the recognition unit; having The lightweight analysis algorithm is an algorithm that analyzes the input data with low memory usage and low calculation amount compared to the m-th stage machine learning model, and obtains the m-th stage recognition result.

2. The analysis unit includes: The device according to claim 1 , further comprising: a processor configured to execute an analysis process using the lightweight analysis algorithm in parallel with an inference process of the mth stage machine learning model by the recognition unit, and obtain the mth stage recognition result of the input data.

3. The expansion section includes: The device according to claim 1 or 2, wherein parameters of the (m+1)th stage machine learning model are expanded on a memory in parallel with the inference process of the mth stage machine learning model by the recognition unit.

4. The recognition unit is The device according to claim 1 , wherein the device obtains an m+1-th stage recognition result of the input data by inference processing of the m+1-th stage machine learning model using parameters of the m+1-th stage machine learning model selected by the selection unit.

5. The expansion section includes: The device according to any one of claims 1 to 4, wherein parameters of the m+1th stage machine learning model expanded on the memory are deleted from the memory other than the parameters of the m+1th stage machine learning model selected by the selection unit.

6. The device according to any one of claims 1 to 5, wherein the machine learning model is a neural network, the input data is image data, and the lightweight analysis algorithm is an algorithm that analyzes the image data with lower memory usage and lower computational complexity than the neural network to obtain the m-th stage recognition result.

7. A device that executes recognition processing realized by configuring multiple stages of inference processing of machine learning models is a recognition step of obtaining an m-th stage recognition result of input data by inference processing of the m-th stage machine learning model using parameters of the m-th stage machine learning model; an analysis step of obtaining the m-th stage recognition result of the input data by an analysis process of a lightweight analysis algorithm; an expansion step of expanding parameters of an (m+1)th stage machine learning model on a memory in accordance with the mth stage recognition result obtained by the analysis step; a selection step of selecting parameters of an (m+1)-th stage machine learning model corresponding to the m-th stage recognition result obtained by the recognition step from parameters of the (m+1)-th stage machine learning model expanded on the memory by the expansion step; Run The method, wherein the lightweight analysis algorithm is an algorithm that analyzes the input data with low memory usage and low computational complexity compared to the m-th stage machine learning model, and obtains the m-th stage recognition result.

8. The device performs recognition processing, which is realized by configuring multiple stages of inference processing of machine learning models. a recognition step of obtaining an m-th stage recognition result of input data by inference processing of the m-th stage machine learning model using parameters of the m-th stage machine learning model; an analysis step of obtaining the m-th stage recognition result of the input data by an analysis process of a lightweight analysis algorithm; an expansion step of expanding parameters of an (m+1)th stage machine learning model on a memory in accordance with the mth stage recognition result obtained by the analysis step; a selection step of selecting parameters of an (m+1)-th stage machine learning model corresponding to the m-th stage recognition result obtained by the recognition step from parameters of the (m+1)-th stage machine learning model expanded on the memory by the expansion step; Run the command, The lightweight analysis algorithm is an algorithm that analyzes the input data with low memory usage and low computational complexity compared to the m-th stage machine learning model, and obtains the m-th stage recognition result.

Citation Information

Patent Citations

  • Pattern recognition device

    JP1999296496A

  • Information processing device, control method of information processing device and program

    JP2019087229A

  • Multi-task recurrent neural networks

    WO2020106581A1